summaryrefslogtreecommitdiff
path: root/src/static_libs
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-11-16 16:49:53 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-11-16 17:29:05 +0100
commit46422187d81145f87b5f2ec023aaea4554999f74 (patch)
tree628de080ef4173d3d2c616663d734091bef53230 /src/static_libs
parentae543adbd1cddfc6fbadb564c3be46c71beb6e5f (diff)
meson: cleanup the native-cpu optimization build code
you were not able to disable the header checks, so if the header was not there it indicated that you could turn it of. However, the option check was in the has_header if not outside of it. Further more, header checks are done in the subdirectory that is done for header checks, unneccessary cpu_**** flags are removed, global optimization options are added to the global_arguments instead of just the package_c_args, which leads to the fact that also all binaries etc. are build by default with those optimization flags. This also reduces the amount of options to a minimum of 1 option, to just control if there should be the optimization or not. This also changes from host_maschine to target_mschine, since we probebly want to enable the optimization for the target maschine, not the host. Differential Revision: https://phab.enlightenment.org/D7296
Diffstat (limited to 'src/static_libs')
-rw-r--r--src/static_libs/draw/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/static_libs/draw/meson.build b/src/static_libs/draw/meson.build
index 54c7216..250e021 100644
--- a/src/static_libs/draw/meson.build
+++ b/src/static_libs/draw/meson.build
@@ -13,7 +13,7 @@ if cpu_sse3 == true
13 draw_opt = static_library('draw_opt', 13 draw_opt = static_library('draw_opt',
14 sources: [ 'draw_main_sse2.c' ], 14 sources: [ 'draw_main_sse2.c' ],
15 include_directories: config_dir + [include_directories(join_paths('..', '..', 'lib'))], 15 include_directories: config_dir + [include_directories(join_paths('..', '..', 'lib'))],
16 c_args: draw_opt_c_args, 16 c_args: native_arch_opt_c_args,
17 dependencies : [eina, efl] 17 dependencies : [eina, efl]
18 ) 18 )
19 draw_opt_lib += [ draw_opt ] 19 draw_opt_lib += [ draw_opt ]