diff options
-rw-r--r-- | header_checks/meson.build | 7 | ||||
-rw-r--r-- | meson.build | 9 | ||||
-rw-r--r-- | src/bin/elementary/meson.build | 9 | ||||
-rw-r--r-- | src/lib/ecore/meson.build | 4 | ||||
-rw-r--r-- | src/lib/eina/meson.build | 4 |
5 files changed, 28 insertions, 5 deletions
diff --git a/header_checks/meson.build b/header_checks/meson.build index 955c0082f2..c71fdbf216 100644 --- a/header_checks/meson.build +++ b/header_checks/meson.build | |||
@@ -88,7 +88,6 @@ function_checks = [ | |||
88 | ['getxattr', ['sys/types.h', 'sys/xattr.h']], | 88 | ['getxattr', ['sys/types.h', 'sys/xattr.h']], |
89 | ['iconv', ['iconv.h']], | 89 | ['iconv', ['iconv.h']], |
90 | ['listxattr', ['sys/types.h', 'sys/xattr.h']], | 90 | ['listxattr', ['sys/types.h', 'sys/xattr.h']], |
91 | ['mallinfo', ['malloc.h']], | ||
92 | ['malloc_info', ['malloc.h']], | 91 | ['malloc_info', ['malloc.h']], |
93 | ['malloc_usable_size', ['malloc.h']], | 92 | ['malloc_usable_size', ['malloc.h']], |
94 | ['mkdirat', ['sys/stat.h']], | 93 | ['mkdirat', ['sys/stat.h']], |
@@ -114,6 +113,7 @@ function_checks = [ | |||
114 | ['dlopen', ['dlfcn.h'], ['dl']], | 113 | ['dlopen', ['dlfcn.h'], ['dl']], |
115 | ['dlsym', ['dlfcn.h'], ['dl']], | 114 | ['dlsym', ['dlfcn.h'], ['dl']], |
116 | ['lround', ['math.h'], ['m']], | 115 | ['lround', ['math.h'], ['m']], |
116 | ['mallinfo', ['malloc.h'], ['malloc']], | ||
117 | ['shm_open', ['sys/mman.h', 'sys/stat.h', 'fcntl.h'], ['rt']], | 117 | ['shm_open', ['sys/mman.h', 'sys/stat.h', 'fcntl.h'], ['rt']], |
118 | #from here on we specify arguments | 118 | #from here on we specify arguments |
119 | ['splice', ['fcntl.h'], [], '-D_GNU_SOURCE=1'], | 119 | ['splice', ['fcntl.h'], [], '-D_GNU_SOURCE=1'], |
@@ -157,6 +157,11 @@ m = cc.find_library('m') | |||
157 | dl = cc.find_library('dl', required: false) | 157 | dl = cc.find_library('dl', required: false) |
158 | rt = cc.find_library('rt', required: false) | 158 | rt = cc.find_library('rt', required: false) |
159 | 159 | ||
160 | if sys_sun == true | ||
161 | malloc = cc.find_library('malloc', required: true) | ||
162 | socket = cc.find_library('socket', required: true) | ||
163 | endif | ||
164 | |||
160 | thread_dep = dependency('threads') | 165 | thread_dep = dependency('threads') |
161 | 166 | ||
162 | #check for the headers | 167 | #check for the headers |
diff --git a/meson.build b/meson.build index af9e8b031e..b2c2d7ff5d 100644 --- a/meson.build +++ b/meson.build | |||
@@ -48,11 +48,13 @@ windows = ['windows', 'cygwin'] | |||
48 | bsd = ['bsd', 'freebsd', 'dragonfly', 'netbsd', 'openbsd'] | 48 | bsd = ['bsd', 'freebsd', 'dragonfly', 'netbsd', 'openbsd'] |
49 | linux = ['linux'] | 49 | linux = ['linux'] |
50 | osx = ['darwin'] | 50 | osx = ['darwin'] |
51 | sun = ['sunos'] | ||
51 | 52 | ||
52 | sys_linux = linux.contains(host_machine.system()) | 53 | sys_linux = linux.contains(host_machine.system()) |
53 | sys_bsd = bsd.contains(host_machine.system()) | 54 | sys_bsd = bsd.contains(host_machine.system()) |
54 | sys_windows = windows.contains(host_machine.system()) | 55 | sys_windows = windows.contains(host_machine.system()) |
55 | sys_osx = osx.contains(host_machine.system()) | 56 | sys_osx = osx.contains(host_machine.system()) |
57 | sys_sun = sun.contains(host_machine.system()) | ||
56 | 58 | ||
57 | module_files = [] | 59 | module_files = [] |
58 | evas_loader_map = [] | 60 | evas_loader_map = [] |
@@ -126,6 +128,11 @@ foreach lang : ['c', 'objc', 'cpp'] | |||
126 | endif | 128 | endif |
127 | endforeach | 129 | endforeach |
128 | 130 | ||
131 | if sys_sun == true | ||
132 | # for getpwuid_r() | ||
133 | add_global_arguments('-D_POSIX_PTHREAD_SEMANTICS', language: 'c') | ||
134 | endif | ||
135 | |||
129 | config_h = configuration_data() | 136 | config_h = configuration_data() |
130 | config_h.set_quoted('MODULE_ARCH', version_name) | 137 | config_h.set_quoted('MODULE_ARCH', version_name) |
131 | config_h.set_quoted('PACKAGE', meson.project_name()) | 138 | config_h.set_quoted('PACKAGE', meson.project_name()) |
@@ -200,7 +207,7 @@ endif | |||
200 | config_dir = [include_directories('.')] | 207 | config_dir = [include_directories('.')] |
201 | eolian_include_directories = [] | 208 | eolian_include_directories = [] |
202 | 209 | ||
203 | if sys_linux == true or sys_bsd == true | 210 | if sys_linux == true or sys_bsd == true or sys_sun == true |
204 | sys_lib_extension = 'so' | 211 | sys_lib_extension = 'so' |
205 | sys_exe_extension = '' | 212 | sys_exe_extension = '' |
206 | sys_mod_extension = 'so' | 213 | sys_mod_extension = 'so' |
diff --git a/src/bin/elementary/meson.build b/src/bin/elementary/meson.build index 1bad71570c..f31ed793e3 100644 --- a/src/bin/elementary/meson.build +++ b/src/bin/elementary/meson.build | |||
@@ -167,12 +167,15 @@ elementary_test_src = [ | |||
167 | 'test.h' | 167 | 'test.h' |
168 | ] | 168 | ] |
169 | 169 | ||
170 | link_args = [] | ||
170 | if sys_windows == false | 171 | if sys_windows == false |
171 | link_args = ['-rdynamic', '-fPIC', '-pie'] | 172 | link_args += ['-rdynamic', '-fPIC'] |
172 | package_c_args = package_c_args + ['-fPIC'] | 173 | package_c_args = package_c_args + ['-fPIC'] |
173 | else | ||
174 | link_args = [] | ||
175 | endif | 174 | endif |
175 | if sys_windows == false and sys_sun == false | ||
176 | link_args += ['-pie'] | ||
177 | endif | ||
178 | |||
176 | elementary_test = executable('elementary_test', | 179 | elementary_test = executable('elementary_test', |
177 | elementary_test_src, | 180 | elementary_test_src, |
178 | dependencies: [elementary, intl] + elementary_deps + elementary_pub_deps, | 181 | dependencies: [elementary, intl] + elementary_deps + elementary_pub_deps, |
diff --git a/src/lib/ecore/meson.build b/src/lib/ecore/meson.build index 0f72f4ba28..dfc2dece55 100644 --- a/src/lib/ecore/meson.build +++ b/src/lib/ecore/meson.build | |||
@@ -2,6 +2,10 @@ ecore_deps = [] | |||
2 | ecore_pub_deps = [eina, eo, efl] | 2 | ecore_pub_deps = [eina, eo, efl] |
3 | ecore_ext_deps = [intl, m, buildsystem] | 3 | ecore_ext_deps = [intl, m, buildsystem] |
4 | 4 | ||
5 | if sys_sun == true | ||
6 | ecore_deps += [malloc] | ||
7 | endif | ||
8 | |||
5 | pub_legacy_eo_files = [ | 9 | pub_legacy_eo_files = [ |
6 | 'ecore_event_message.eo', | 10 | 'ecore_event_message.eo', |
7 | 'ecore_event_message_handler.eo', | 11 | 'ecore_event_message_handler.eo', |
diff --git a/src/lib/eina/meson.build b/src/lib/eina/meson.build index 7aa1afa7ba..272c8fda82 100644 --- a/src/lib/eina/meson.build +++ b/src/lib/eina/meson.build | |||
@@ -7,6 +7,10 @@ if sys_windows == true | |||
7 | eina_pub_deps += [evil] | 7 | eina_pub_deps += [evil] |
8 | endif | 8 | endif |
9 | 9 | ||
10 | if sys_sun == true | ||
11 | eina_deps += [socket] | ||
12 | endif | ||
13 | |||
10 | public_sub_headers = [ | 14 | public_sub_headers = [ |
11 | 'eina_promise.h', | 15 | 'eina_promise.h', |
12 | 'eina_safety_checks.h', | 16 | 'eina_safety_checks.h', |