aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libpq/CMakeLists.darwin-x86_64.txt
blob: 60eae0ae86bae7796da5d3583205f1484c702ef8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# This file was generated by the build system used internally in the Yandex monorepo.
# Only simple modifications are allowed (adding source-files to targets, adding simple properties
# like target_include_directories). These modifications will be ported to original
# ya.make files by maintainers. Any complex modifications which can't be ported back to the
# original buildsystem will not be accepted.



add_library(contrib-libs-libpq)
target_compile_options(contrib-libs-libpq PRIVATE
  -DFRONTEND
  -DUNSAFE_STAT_OK
  -D_POSIX_PTHREAD_SEMANTICS
  -D_REENTRANT
  -D_THREAD_SAFE
  $<IF:$<CXX_COMPILER_ID:MSVC>,,-Wno-everything>
)
target_include_directories(contrib-libs-libpq PUBLIC
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/include
)
target_include_directories(contrib-libs-libpq PRIVATE
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/backend
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/interfaces/libpq
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/port
)
target_link_libraries(contrib-libs-libpq PUBLIC
  contrib-libs-libc_compat
  contrib-libs-openssl
  contrib-libs-zlib
)
target_sources(contrib-libs-libpq PRIVATE
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/archive.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/base64.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/checksum_helper.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/compression.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/config_info.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/controldata_utils.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/cryptohash_openssl.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/d2s.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/encnames.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/exec.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/f2s.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/fe_memutils.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/file_perm.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/file_utils.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/hashfn.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/hmac_openssl.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/ip.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/jsonapi.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/keywords.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/kwlookup.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/link-canary.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/logging.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/md5_common.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/percentrepl.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/pg_get_line.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/pg_lzcompress.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/pg_prng.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/pgfnames.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/protocol_openssl.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/psprintf.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/relpath.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/restricted_token.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/rmtree.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/saslprep.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/scram-common.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/sprompt.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/string.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/stringinfo.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/unicode_norm.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/username.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/wait_error.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/common/wchar.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/interfaces/libpq/fe-auth-scram.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/interfaces/libpq/fe-auth.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/interfaces/libpq/fe-connect.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/interfaces/libpq/fe-exec.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/interfaces/libpq/fe-lobj.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/interfaces/libpq/fe-misc.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/interfaces/libpq/fe-print.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/interfaces/libpq/fe-protocol3.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/interfaces/libpq/fe-secure-common.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/interfaces/libpq/fe-secure-openssl.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/interfaces/libpq/fe-secure.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/interfaces/libpq/fe-trace.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/interfaces/libpq/libpq-events.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/interfaces/libpq/pqexpbuffer.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/port/bsearch_arg.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/port/chklocale.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/port/getpeereid.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/port/inet_net_ntop.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/port/noblock.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/port/path.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/port/pg_bitutils.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/port/pg_crc32c_sb8.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/port/pg_strong_random.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/port/pgcheckdir.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/port/pgmkdirp.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/port/pgsleep.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/port/pgstrcasecmp.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/port/pgstrsignal.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/port/pqsignal.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/port/qsort.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/port/qsort_arg.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/port/quotes.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/port/snprintf.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/port/strerror.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/port/tar.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/port/thread.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/port/pg_crc32c_sse42.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/libpq/src/port/pg_crc32c_sse42_choose.c
)