meson: cleanup the native-cpu optimization build code
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Fri, 16 Nov 2018 15:49:53 +0000 (16:49 +0100)
committerSangHyeon Jade Lee <sh10233.lee@samsung.com>
Tue, 20 Nov 2018 09:53:13 +0000 (18:53 +0900)
commit320e1e4fcc6af7cd51b2e3edf7e03e0594aa99fe
tree6f90ea647190b4a51204497da2c5912e22bfd380
parent471ac1f0d84d1795d5fb44afc9f4f94efdabfb7a
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
header_checks/meson.build
meson.build
meson_options.txt
src/lib/ector/software/meson.build
src/lib/evas/meson.build
src/static_libs/draw/meson.build