xlsxwriter 0.2.1.pre.2 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +4 -3
- data/ext/xlsxwriter/chart.c +20 -2
- data/ext/xlsxwriter/extconf.rb +8 -8
- data/ext/xlsxwriter/libxlsxwriter/License.txt +24 -2
- data/ext/xlsxwriter/libxlsxwriter/Makefile +46 -12
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/app.h +1 -1
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/chart.h +196 -30
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/chartsheet.h +3 -3
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/comment.h +76 -0
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/common.h +24 -5
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/content_types.h +5 -1
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/core.h +1 -1
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/custom.h +1 -1
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/drawing.h +6 -17
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/format.h +20 -6
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/hash_table.h +1 -1
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/packager.h +3 -1
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/relationships.h +1 -1
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/shared_strings.h +1 -1
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/styles.h +11 -5
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/theme.h +1 -1
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/third_party/md5.h +43 -0
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/utility.h +42 -3
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/vml.h +55 -0
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/workbook.h +83 -18
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/worksheet.h +1519 -109
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/xmlwriter.h +4 -2
- data/ext/xlsxwriter/libxlsxwriter/include/xlsxwriter.h +3 -2
- data/ext/xlsxwriter/libxlsxwriter/src/Makefile +25 -7
- data/ext/xlsxwriter/libxlsxwriter/src/app.c +1 -1
- data/ext/xlsxwriter/libxlsxwriter/src/chart.c +332 -48
- data/ext/xlsxwriter/libxlsxwriter/src/chartsheet.c +20 -19
- data/ext/xlsxwriter/libxlsxwriter/src/comment.c +443 -0
- data/ext/xlsxwriter/libxlsxwriter/src/content_types.c +20 -1
- data/ext/xlsxwriter/libxlsxwriter/src/core.c +2 -2
- data/ext/xlsxwriter/libxlsxwriter/src/custom.c +1 -1
- data/ext/xlsxwriter/libxlsxwriter/src/drawing.c +58 -20
- data/ext/xlsxwriter/libxlsxwriter/src/format.c +98 -25
- data/ext/xlsxwriter/libxlsxwriter/src/hash_table.c +1 -1
- data/ext/xlsxwriter/libxlsxwriter/src/packager.c +269 -12
- data/ext/xlsxwriter/libxlsxwriter/src/relationships.c +1 -1
- data/ext/xlsxwriter/libxlsxwriter/src/shared_strings.c +2 -4
- data/ext/xlsxwriter/libxlsxwriter/src/styles.c +334 -48
- data/ext/xlsxwriter/libxlsxwriter/src/theme.c +1 -1
- data/ext/xlsxwriter/libxlsxwriter/src/utility.c +71 -8
- data/ext/xlsxwriter/libxlsxwriter/src/vml.c +1032 -0
- data/ext/xlsxwriter/libxlsxwriter/src/workbook.c +343 -27
- data/ext/xlsxwriter/libxlsxwriter/src/worksheet.c +3759 -478
- data/ext/xlsxwriter/libxlsxwriter/src/xmlwriter.c +81 -2
- data/ext/xlsxwriter/libxlsxwriter/third_party/md5/Makefile +42 -0
- data/ext/xlsxwriter/libxlsxwriter/third_party/md5/md5.c +291 -0
- data/ext/xlsxwriter/libxlsxwriter/third_party/md5/md5.h +43 -0
- data/ext/xlsxwriter/shared_strings.c +65 -0
- data/ext/xlsxwriter/shared_strings.h +15 -0
- data/ext/xlsxwriter/workbook.c +56 -1
- data/ext/xlsxwriter/worksheet.c +31 -2
- data/ext/xlsxwriter/worksheet.h +1 -0
- data/ext/xlsxwriter/xlsxwriter.c +2 -0
- data/lib/xlsxwriter/rich_string.rb +0 -2
- data/lib/xlsxwriter/version.rb +1 -1
- data/lib/xlsxwriter/worksheet.rb +2 -2
- data/test/{run-test.rb → run_test.rb} +3 -3
- data/test/support/chart_test.rb +3 -3
- data/test/support/with_xlsx_file.rb +4 -2
- data/test/support/xlsx_comparable.rb +40 -26
- data/test/test_array_formula.rb +42 -0
- data/test/test_autofilter.rb +72 -0
- data/test/{test-chart-area.rb → test_chart_area.rb} +2 -2
- data/test/{test-chart-axis.rb → test_chart_axis.rb} +16 -16
- data/test/test_chart_bar.rb +382 -0
- data/test/test_chart_blank.rb +27 -0
- data/test/{test-chart-column.rb → test_chart_column.rb} +2 -2
- data/test/{test-chart-doughnut.rb → test_chart_doughnut.rb} +2 -2
- data/test/{test-chart-legend.rb → test_chart_legend.rb} +2 -2
- data/test/{test-chart-pie.rb → test_chart_pie.rb} +2 -2
- data/test/{test-chart-scatter.rb → test_chart_scatter.rb} +3 -4
- data/test/{test-chart-size.rb → test_chart_size.rb} +2 -2
- data/test/{test-chart-title.rb → test_chart_title.rb} +3 -3
- data/test/{test-chartsheet.rb → test_chartsheet.rb} +2 -2
- data/test/{test-data.rb → test_data.rb} +1 -1
- data/test/{test-data-validation.rb → test_data_validation.rb} +23 -24
- data/test/{test-default-row.rb → test_default_row.rb} +1 -1
- data/test/{test-defined-name.rb → test_defined_name.rb} +12 -12
- data/test/{test-escapes.rb → test_escapes.rb} +5 -2
- data/test/{test-fit-to-pages.rb → test_fit_to_pages.rb} +6 -6
- data/test/{test-formatting.rb → test_formatting.rb} +10 -10
- data/test/{test-gridlines.rb → test_gridlines.rb} +3 -3
- data/test/{test-hyperlink.rb → test_hyperlink.rb} +22 -11
- data/test/{test-image.rb → test_image.rb} +6 -4
- data/test/{test-macro.rb → test_macro.rb} +1 -1
- data/test/{test-merge-range.rb → test_merge_range.rb} +1 -1
- data/test/{test-misc.rb → test_misc.rb} +2 -2
- data/test/{test-optimize.rb → test_optimize.rb} +2 -4
- data/test/{test-outline.rb → test_outline.rb} +14 -14
- data/test/{test-page-breaks.rb → test_page_breaks.rb} +2 -2
- data/test/{test-page-setup.rb → test_page_setup.rb} +2 -2
- data/test/{test-panes.rb → test_panes.rb} +1 -1
- data/test/{test-print-area.rb → test_print_area.rb} +3 -3
- data/test/{test-print-options.rb → test_print_options.rb} +7 -7
- data/test/{test-print-scale.rb → test_print_scale.rb} +2 -2
- data/test/{test-properties.rb → test_properties.rb} +2 -2
- data/test/{test-protect.rb → test_protect.rb} +3 -3
- data/test/{test-repeat.rb → test_repeat.rb} +3 -3
- data/test/{test-rich-string.rb → test_rich_string.rb} +5 -9
- data/test/{test-row-col-format.rb → test_row_col_format.rb} +1 -1
- data/test/{test-ruby-worksheet.rb → test_ruby_worksheet.rb} +2 -2
- data/test/{test-set-selection.rb → test_set_selection.rb} +2 -2
- data/test/{test-set-start-page.rb → test_set_start_page.rb} +2 -2
- data/test/{test-simple.rb → test_simple.rb} +10 -10
- data/test/{test-types.rb → test_types.rb} +1 -1
- data/test/{xlsx-func-testcase.rb → xlsx_func_testcase.rb} +1 -0
- metadata +132 -106
- data/test/test-array-formula.rb +0 -35
- data/test/test-autofilter.rb +0 -72
- data/test/test-chart-bar.rb +0 -74
- /data/test/{test-errors.rb → test_errors.rb} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f03eb87d448a902c6067b95d4a3d7598cecd3456a3f8097e40da1bd0351c8d4
|
4
|
+
data.tar.gz: 2af72c3d678d22a1990f960ee0b7f2315e39d37a780b5e589ebce7794b1b23f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ebcf14300b3cbaf46fc3a784c2ad9b5c114fa2ea3dccca08976ae8af7f50265beb05ed4233da92db1398bed7e17144779ca2c973cab59dad55e95fb3ee926ae
|
7
|
+
data.tar.gz: 0cd298302d3c354ced238ed5fba71b7b05498db56c76df2b307d90603c122308c79780db9af55d1f46c7aece7f30da517a39d30f5d0b56acfd3107f79fbc9fb5
|
data/Rakefile
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
require 'rake/extensiontask'
|
3
4
|
|
4
5
|
task default: :test
|
@@ -12,9 +13,9 @@ Rake::Task['compile'].prerequisites.unshift :patch_dep
|
|
12
13
|
Gem::PackageTask.new(spec) do |pkg|
|
13
14
|
end
|
14
15
|
|
15
|
-
DEP_DIR='ext/xlsxwriter/libxlsxwriter'
|
16
|
+
DEP_DIR = 'ext/xlsxwriter/libxlsxwriter'
|
16
17
|
|
17
|
-
desc
|
18
|
+
desc 'Checkout xlsxwriter C library'
|
18
19
|
task :patch_dep do
|
19
20
|
patches = Dir["#{pwd}/dep_patches/*.patch"]
|
20
21
|
chdir(DEP_DIR) do
|
@@ -30,5 +31,5 @@ end
|
|
30
31
|
|
31
32
|
desc 'Run specs'
|
32
33
|
task test: :compile do
|
33
|
-
ruby
|
34
|
+
ruby 'test/run_test.rb'
|
34
35
|
end
|
data/ext/xlsxwriter/chart.c
CHANGED
@@ -253,6 +253,17 @@ DEF_PROP_SETTER(chart, rotation, NUM2UINT(rb_check_to_int(val)))
|
|
253
253
|
*/
|
254
254
|
DEF_PROP_SETTER(chart, hole_size, NUM2UINT(rb_check_to_int(val)))
|
255
255
|
|
256
|
+
/* Document-method: XlsxWriter::Workbook::Chart#show_blanks_as=
|
257
|
+
*
|
258
|
+
*/
|
259
|
+
VALUE
|
260
|
+
chart_set_show_blank_as_(VALUE self, VALUE val) {
|
261
|
+
struct chart *ptr;
|
262
|
+
Data_Get_Struct(self, struct chart, ptr);
|
263
|
+
ptr->chart->show_blanks_as = NUM2INT(rb_check_to_int(val));
|
264
|
+
return val;
|
265
|
+
}
|
266
|
+
|
256
267
|
|
257
268
|
/* :nodoc: */
|
258
269
|
VALUE
|
@@ -267,7 +278,7 @@ VALUE
|
|
267
278
|
chart_set_axis_id_1_(VALUE self, VALUE val) {
|
268
279
|
struct chart *ptr;
|
269
280
|
Data_Get_Struct(self, struct chart, ptr);
|
270
|
-
ptr->chart->axis_id_1 = NUM2UINT(val);
|
281
|
+
ptr->chart->axis_id_1 = NUM2UINT(rb_check_to_int(val));
|
271
282
|
return val;
|
272
283
|
}
|
273
284
|
|
@@ -284,7 +295,7 @@ VALUE
|
|
284
295
|
chart_set_axis_id_2_(VALUE self, VALUE val) {
|
285
296
|
struct chart *ptr;
|
286
297
|
Data_Get_Struct(self, struct chart, ptr);
|
287
|
-
ptr->chart->axis_id_2 = NUM2UINT(val);
|
298
|
+
ptr->chart->axis_id_2 = NUM2UINT(rb_check_to_int(val));
|
288
299
|
return val;
|
289
300
|
}
|
290
301
|
|
@@ -611,17 +622,20 @@ void init_xlsxwriter_chart() {
|
|
611
622
|
|
612
623
|
|
613
624
|
rb_define_alloc_func(cChart, chart_alloc);
|
625
|
+
rb_define_attr(cChart, "workbook", 1, 0);
|
614
626
|
rb_define_method(cChart, "initialize", chart_init, 2);
|
615
627
|
rb_define_method(cChart, "add_series", chart_add_series_, -1);
|
616
628
|
rb_define_method(cChart, "x_axis", chart_x_axis_, 0);
|
617
629
|
rb_define_method(cChart, "y_axis", chart_y_axis_, 0);
|
618
630
|
rb_define_method(cChart, "title=", chart_title_set_name_, 1);
|
631
|
+
rb_define_method(cChart, "set_name_range", chart_title_set_name_range_, -1);
|
619
632
|
rb_define_method(cChart, "legend_position=", chart_legend_set_position_, 1);
|
620
633
|
rb_define_method(cChart, "legend_set_font", chart_legend_set_font_, 1);
|
621
634
|
rb_define_method(cChart, "legend_delete_series", chart_legend_delete_series_, 1);
|
622
635
|
rb_define_method(cChart, "style=", chart_set_style_, 1);
|
623
636
|
rb_define_method(cChart, "rotation=", chart_set_rotation_, 1);
|
624
637
|
rb_define_method(cChart, "hole_size=", chart_set_hole_size_, 1);
|
638
|
+
rb_define_method(cChart, "show_blank_as=", chart_set_show_blank_as_, 1);
|
625
639
|
|
626
640
|
rb_define_method(cChart, "axis_id_1", chart_get_axis_id_1_, 0);
|
627
641
|
rb_define_method(cChart, "axis_id_1=", chart_set_axis_id_1_, 1);
|
@@ -700,6 +714,10 @@ void init_xlsxwriter_chart() {
|
|
700
714
|
MAP_CHART_CONST(AXIS_LABEL_ALIGN_CENTER);
|
701
715
|
MAP_CHART_CONST(AXIS_LABEL_ALIGN_LEFT);
|
702
716
|
MAP_CHART_CONST(AXIS_LABEL_ALIGN_RIGHT);
|
717
|
+
|
718
|
+
MAP_CHART_CONST(BLANKS_AS_GAP);
|
719
|
+
MAP_CHART_CONST(BLANKS_AS_ZERO);
|
720
|
+
MAP_CHART_CONST(BLANKS_AS_CONNECTED);
|
703
721
|
#undef MAP_CHART_CONST
|
704
722
|
|
705
723
|
#define MAP_CHART_AXIS_CONST(name) rb_define_const(cChartAxis, #name, INT2NUM(LXW_CHART_AXIS_##name))
|
data/ext/xlsxwriter/extconf.rb
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'mkmf'
|
4
|
+
require 'English'
|
2
5
|
|
3
|
-
libxlsxwriter_dir = File.expand_path('
|
4
|
-
make_pid = spawn({'CFLAGS' => '-fPIC -O2'}, $make, chdir: libxlsxwriter_dir)
|
6
|
+
libxlsxwriter_dir = File.expand_path('libxlsxwriter', __dir__)
|
7
|
+
make_pid = spawn({ 'CFLAGS' => '-fPIC -O2' }, $make, chdir: libxlsxwriter_dir)
|
5
8
|
Process.wait(make_pid)
|
6
|
-
raise 'Make failed for xlsxwriter' unless
|
9
|
+
raise 'Make failed for xlsxwriter' unless $CHILD_STATUS.success?
|
7
10
|
|
8
|
-
|
9
|
-
|
10
|
-
$CFLAGS="-I'#{libxlsxwriter_dir}/include' -g -Wall -O2"
|
11
|
-
# $LDFLAGS="-L./libxlsxwriter/lib/ -Wl,-Bstatic -lxlsxwriter -Wl,-Bdynamic"
|
12
|
-
$LDFLAGS="-lz #{libxlsxwriter_dir}/lib/libxlsxwriter.a"
|
11
|
+
$CFLAGS = "-I'#{libxlsxwriter_dir}/include' -g -Wall -Werror -O2"
|
12
|
+
$LDFLAGS = "-lz #{libxlsxwriter_dir}/lib/libxlsxwriter.a"
|
13
13
|
|
14
14
|
create_makefile 'xlsxwriter/xlsxwriter'
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Libxlsxwriter is released under a FreeBSD license:
|
6
6
|
|
7
|
-
Copyright 2014-
|
7
|
+
Copyright 2014-2020, John McNamara <jmcnamara@cpan.org>
|
8
8
|
All rights reserved.
|
9
9
|
|
10
10
|
Redistribution and use in source and binary forms, with or without
|
@@ -35,7 +35,8 @@ Libxlsxwriter is released under a FreeBSD license:
|
|
35
35
|
|
36
36
|
|
37
37
|
Libxlsxwriter includes `queue.h` and `tree.h` from FreeBSD, the `minizip`
|
38
|
-
component of `zlib` and `
|
38
|
+
component of `zlib`, `tmpfileplus` and `md5` which have the following
|
39
|
+
licenses:
|
39
40
|
|
40
41
|
|
41
42
|
Queue.h from FreeBSD:
|
@@ -146,5 +147,26 @@ See the [Mozilla Public License, v. 2.0](http://mozilla.org/MPL/2.0/).
|
|
146
147
|
Note, it is possible to compile libxlsxwriter using the standard library
|
147
148
|
`tmpfile()` function instead of `tmpfileplus`, see @ref gsg_tmpdir.
|
148
149
|
|
150
|
+
[Openwall MD5](https://openwall.info/wiki/people/solar/software/public-domain-source-code/md5)
|
151
|
+
has the following licence:
|
152
|
+
|
153
|
+
This software was written by Alexander Peslyak in 2001. No copyright is
|
154
|
+
claimed, and the software is hereby placed in the public domain.
|
155
|
+
In case this attempt to disclaim copyright and place the software in the
|
156
|
+
public domain is deemed null and void, then the software is
|
157
|
+
Copyright (c) 2001 Alexander Peslyak and it is hereby released to the
|
158
|
+
general public under the following terms:
|
159
|
+
|
160
|
+
Redistribution and use in source and binary forms, with or without
|
161
|
+
modification, are permitted.
|
162
|
+
|
163
|
+
There's ABSOLUTELY NO WARRANTY, express or implied.
|
164
|
+
|
165
|
+
(This is a heavily cut-down "BSD license".)
|
166
|
+
|
167
|
+
Note, the MD5 library is used to avoid including duplicate image files in the
|
168
|
+
xlsx file. If this functionality isn't required it is possible to compile
|
169
|
+
libxlsxwriter without this library by passing `USE_NO_MD5=1` to make.
|
170
|
+
|
149
171
|
Next: @ref changes
|
150
172
|
*/
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# Makefile for libxlsxwriter library.
|
4
4
|
#
|
5
|
-
# Copyright 2014-
|
5
|
+
# Copyright 2014-2020, John McNamara, jmcnamara@cpan.org
|
6
6
|
#
|
7
7
|
|
8
8
|
# Keep the output quiet by default.
|
@@ -11,9 +11,11 @@ ifdef V
|
|
11
11
|
Q=
|
12
12
|
endif
|
13
13
|
|
14
|
-
|
14
|
+
DESTDIR ?=
|
15
|
+
PREFIX ?= /usr/local
|
15
16
|
|
16
17
|
PYTEST ?= py.test
|
18
|
+
PYTESTFILES ?= test
|
17
19
|
|
18
20
|
.PHONY: docs tags examples
|
19
21
|
|
@@ -24,6 +26,9 @@ ifndef USE_SYSTEM_MINIZIP
|
|
24
26
|
endif
|
25
27
|
ifndef USE_STANDARD_TMPFILE
|
26
28
|
$(Q)$(MAKE) -C third_party/tmpfileplus
|
29
|
+
endif
|
30
|
+
ifndef USE_NO_MD5
|
31
|
+
$(Q)$(MAKE) -C third_party/md5
|
27
32
|
endif
|
28
33
|
$(Q)$(MAKE) -C src
|
29
34
|
|
@@ -41,15 +46,18 @@ clean :
|
|
41
46
|
$(Q)rm -rf test/functional/__pycache__
|
42
47
|
$(Q)rm -f test/functional/*.pyc
|
43
48
|
$(Q)rm -f lib/*
|
44
|
-
ifndef
|
49
|
+
ifndef USE_SYSTEM_MINIZIP
|
45
50
|
$(Q)$(MAKE) clean -C third_party/minizip
|
46
51
|
endif
|
47
52
|
ifndef USE_STANDARD_TMPFILE
|
48
53
|
$(Q)$(MAKE) clean -C third_party/tmpfileplus
|
49
54
|
endif
|
55
|
+
ifndef USE_NO_MD5
|
56
|
+
$(Q)$(MAKE) clean -C third_party/md5
|
57
|
+
endif
|
50
58
|
|
51
59
|
# Run the unit tests.
|
52
|
-
test : all test_functional
|
60
|
+
test : all test_unit test_functional
|
53
61
|
|
54
62
|
# Test for C++ const correctness on APIs.
|
55
63
|
test_const : all
|
@@ -60,7 +68,7 @@ test_const : all
|
|
60
68
|
# Run the functional tests.
|
61
69
|
test_functional : all
|
62
70
|
$(Q)$(MAKE) -C test/functional/src
|
63
|
-
$(Q)$(PYTEST) test/functional -v
|
71
|
+
$(Q)$(PYTEST) test/functional -v -k $(PYTESTFILES)
|
64
72
|
|
65
73
|
# Run all tests.
|
66
74
|
test_unit :
|
@@ -70,10 +78,26 @@ ifndef USE_SYSTEM_MINIZIP
|
|
70
78
|
endif
|
71
79
|
ifndef USE_STANDARD_TMPFILE
|
72
80
|
$(Q)$(MAKE) -C third_party/tmpfileplus
|
81
|
+
endif
|
82
|
+
ifndef USE_NO_MD5
|
83
|
+
$(Q)$(MAKE) -C third_party/md5
|
73
84
|
endif
|
74
85
|
$(Q)$(MAKE) -C src test_lib
|
75
86
|
$(Q)$(MAKE) -C test/unit test
|
76
87
|
|
88
|
+
# Test Cmake. This test should really be done with Cmake in the cmake dir but
|
89
|
+
# this is a workaround for now.
|
90
|
+
test_cmake :
|
91
|
+
ifneq ($(findstring m32,$(CFLAGS)),m32)
|
92
|
+
$(Q)$(MAKE) -C src clean
|
93
|
+
$(Q)cd cmake; cmake .. -DBUILD_TESTS=ON -DBUILD_EXAMPLES=ON; make clean; make; cp libxlsxwriter.a ../src/
|
94
|
+
$(Q)cmake/xlsxwriter_unit
|
95
|
+
$(Q)$(MAKE) -C test/functional/src
|
96
|
+
$(Q)$(PYTEST) test/functional -v -k $(PYTESTFILES)
|
97
|
+
else
|
98
|
+
@echo "Skipping Cmake tests on 32 bit target."
|
99
|
+
endif
|
100
|
+
|
77
101
|
# Test the functional test exes with valgrind (in 64bit mode only).
|
78
102
|
test_valgrind : all
|
79
103
|
ifndef NO_VALGRIND
|
@@ -98,17 +122,20 @@ doc: docs
|
|
98
122
|
docs:
|
99
123
|
$(Q)$(MAKE) -C docs
|
100
124
|
|
125
|
+
docs_doxygen_only:
|
126
|
+
$(Q)$(MAKE) -C docs docs_doxygen_only
|
127
|
+
|
101
128
|
# Simple minded install.
|
102
129
|
install: all
|
103
|
-
$(Q)mkdir -p $(
|
104
|
-
$(Q)cp -R include/* $(
|
105
|
-
$(Q)mkdir -p $(
|
106
|
-
$(Q)cp lib/* $(
|
130
|
+
$(Q)mkdir -p $(DESTDIR)$(PREFIX)/include
|
131
|
+
$(Q)cp -R include/* $(DESTDIR)$(PREFIX)/include
|
132
|
+
$(Q)mkdir -p $(DESTDIR)$(PREFIX)/lib
|
133
|
+
$(Q)cp lib/* $(DESTDIR)$(PREFIX)/lib
|
107
134
|
|
108
135
|
# Simpler minded uninstall.
|
109
136
|
uninstall:
|
110
|
-
$(Q)rm -rf $(
|
111
|
-
$(Q)rm $(
|
137
|
+
$(Q)rm -rf $(DESTDIR)$(PREFIX)/include/xlsxwriter*
|
138
|
+
$(Q)rm $(DESTDIR)$(PREFIX)/lib/libxlsxwriter.*
|
112
139
|
|
113
140
|
# Strip the lib files.
|
114
141
|
strip:
|
@@ -121,12 +148,15 @@ ifndef USE_SYSTEM_MINIZIP
|
|
121
148
|
endif
|
122
149
|
ifndef USE_STANDARD_TMPFILE
|
123
150
|
$(Q)$(MAKE) -C third_party/tmpfileplus
|
151
|
+
endif
|
152
|
+
ifndef USE_NO_MD5
|
153
|
+
$(Q)$(MAKE) -C third_party/md5
|
124
154
|
endif
|
125
155
|
$(Q)$(MAKE) -C src clean
|
126
156
|
$(Q)rm -f lib/*
|
127
157
|
$(Q)rm -rf cov-int
|
128
158
|
$(Q)rm -f libxlsxwriter-coverity.tgz
|
129
|
-
$(Q)../../cov-analysis-linux64-
|
159
|
+
$(Q)../../cov-analysis-linux64-2019.03/bin/cov-build --dir cov-int make -C src libxlsxwriter.a
|
130
160
|
$(Q)tar -czf libxlsxwriter-coverity.tgz cov-int
|
131
161
|
$(Q)$(MAKE) -C src clean
|
132
162
|
$(Q)rm -f lib/*
|
@@ -138,6 +168,9 @@ ifndef USE_SYSTEM_MINIZIP
|
|
138
168
|
endif
|
139
169
|
ifndef USE_STANDARD_TMPFILE
|
140
170
|
$(Q)$(MAKE) -C third_party/tmpfileplus
|
171
|
+
endif
|
172
|
+
ifndef USE_NO_MD5
|
173
|
+
$(Q)$(MAKE) -C third_party/md5
|
141
174
|
endif
|
142
175
|
$(Q)$(MAKE) -C src clean
|
143
176
|
$(Q)rm -f lib/*
|
@@ -152,6 +185,7 @@ spellcheck:
|
|
152
185
|
$(Q)for f in examples/*.c; do aspell --lang=en_US --check $$f; done
|
153
186
|
$(Q)aspell --lang=en_US --check Changes.txt
|
154
187
|
$(Q)aspell --lang=en_US --check Readme.md
|
188
|
+
$(Q)aspell --lang=en_US --check docs/src/examples.txt
|
155
189
|
|
156
190
|
releasecheck:
|
157
191
|
$(Q)dev/release/release_check.sh
|