@@ -25,6 +25,8 @@ if (DEFINED DUCKDB_EXTENSION_API_VERSION_UNSTABLE)
2525 add_definitions (-DDUCKDB_EXTENSION_API_VERSION_UNSTABLE=${DUCKDB_EXTENSION_API_VERSION_UNSTABLE} )
2626endif ()
2727
28+ add_compile_definitions (HAVE_ZLIB)
29+
2830###
2931# Build
3032###
@@ -33,43 +35,44 @@ project(${EXTENSION_NAME} LANGUAGES C)
3335# Create Extension library
3436set (EXTENSION_SOURCES
3537 src/duckdb_read_stat.c
36- third_party/readstat/CKHashTable.c
37- third_party/readstat/readstat_bits.c
38- third_party/readstat/readstat_convert.c
39- third_party/readstat/readstat_error.c
40- third_party/readstat/readstat_io_unistd.c
41- third_party/readstat/readstat_malloc.c
42- third_party/readstat/readstat_metadata.c
43- third_party/readstat/readstat_parser.c
44- third_party/readstat/readstat_value.c
45- third_party/readstat/readstat_variable.c
46- third_party/readstat/readstat_writer.c
47- third_party/readstat/sas/ieee.c
48- third_party/readstat/sas/readstat_sas.c
49- third_party/readstat/sas/readstat_sas_rle.c
50- third_party/readstat/sas/readstat_sas7bdat_read.c
51- third_party/readstat/sas/readstat_xport_parse_format.c
52- third_party/readstat/sas/readstat_xport_read.c
53- third_party/readstat/sas/readstat_xport_write.c
54- third_party/readstat/sas/readstat_xport.c
55- third_party/readstat/spss/readstat_por_parse.c
56- third_party/readstat/spss/readstat_por_read.c
57- third_party/readstat/spss/readstat_por_write.c
58- third_party/readstat/spss/readstat_por.c
59- third_party/readstat/spss/readstat_sav_compress.c
60- third_party/readstat/spss/readstat_sav_parse_timestamp.c
61- third_party/readstat/spss/readstat_sav_parse.c
62- third_party/readstat/spss/readstat_sav_read.c
63- third_party/readstat/spss/readstat_sav_write.c
64- third_party/readstat/spss/readstat_sav.c
65- third_party/readstat/spss/readstat_spss_parse.c
66- third_party/readstat/spss/readstat_spss.c
67- third_party/readstat/spss/readstat_zsav_compress.c
68- third_party/readstat/spss/readstat_zsav_read.c
69- third_party/readstat/spss/readstat_zsav_write.c
70- third_party/readstat/stata/readstat_dta.c
71- third_party/readstat/stata/readstat_dta_parse_timestamp.c
72- third_party/readstat/stata/readstat_dta_read.c
38+ third_party/readstat/src/CKHashTable.c
39+ third_party/readstat/src/readstat_bits.c
40+ third_party/readstat/src/readstat_convert.c
41+ third_party/readstat/src/readstat_error.c
42+ third_party/readstat/src/readstat_io_unistd.c
43+ third_party/readstat/src/readstat_malloc.c
44+ third_party/readstat/src/readstat_metadata.c
45+ third_party/readstat/src/readstat_parser.c
46+ third_party/readstat/src/readstat_value.c
47+ third_party/readstat/src/readstat_variable.c
48+ third_party/readstat/src/readstat_writer.c
49+ third_party/readstat/src/sas/ieee.c
50+ third_party/readstat/src/sas/readstat_sas.c
51+ third_party/readstat/src/sas/readstat_sas_rle.c
52+ third_party/readstat/src/sas/readstat_sas7bdat_read.c
53+ third_party/readstat/src/sas/readstat_xport_parse_format.c
54+ third_party/readstat/src/sas/readstat_xport_read.c
55+ third_party/readstat/src/sas/readstat_xport_write.c
56+ third_party/readstat/src/sas/readstat_xport.c
57+ third_party/readstat/src/spss/readstat_por_parse.c
58+ third_party/readstat/src/spss/readstat_por_read.c
59+ third_party/readstat/src/spss/readstat_por_write.c
60+ third_party/readstat/src/spss/readstat_por.c
61+ third_party/readstat/src/spss/readstat_sav_compress.c
62+ third_party/readstat/src/spss/readstat_sav_parse_timestamp.c
63+ third_party/readstat/src/spss/readstat_sav_parse.c
64+ third_party/readstat/src/spss/readstat_sav_parse_mr_name.c
65+ third_party/readstat/src/spss/readstat_sav_read.c
66+ third_party/readstat/src/spss/readstat_sav_write.c
67+ third_party/readstat/src/spss/readstat_sav.c
68+ third_party/readstat/src/spss/readstat_spss_parse.c
69+ third_party/readstat/src/spss/readstat_spss.c
70+ third_party/readstat/src/spss/readstat_zsav_compress.c
71+ third_party/readstat/src/spss/readstat_zsav_read.c
72+ third_party/readstat/src/spss/readstat_zsav_write.c
73+ third_party/readstat/src/stata/readstat_dta.c
74+ third_party/readstat/src/stata/readstat_dta_parse_timestamp.c
75+ third_party/readstat/src/stata/readstat_dta_read.c
7376)
7477
7578if (DUCKDB_WASM_EXTENSION)
@@ -98,4 +101,4 @@ target_include_directories(${EXTENSION_NAME} PRIVATE src/include)
98101# Include DuckDB C API headers
99102target_include_directories (${EXTENSION_NAME} PRIVATE duckdb_capi)
100103
101- target_include_directories (${EXTENSION_NAME} PRIVATE third_party/readstat)
104+ target_include_directories (${EXTENSION_NAME} PRIVATE third_party/readstat/src )
0 commit comments