Commit graph

25 commits

Author SHA1 Message Date
Ivailo Monev
a6fd152efc force PIC on object targets if depending on the library targets
the CMake documentation for the POSITION_INDEPENDENT_CODE
property states that it is set to True for SHARED and
MODULE targets, however mixing objects that are build
without PIC and shared/module objects with PIC does not
end well (linker error) thus the macro to workaround
that fixing the build for x86_64

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-06-13 22:07:42 +00:00
Ivailo Monev
0afe0c0c36 simplify installation directories handling via use of CPACK_SET_DESTDIR
also, the CMake files are installed where they can be found by default
(without any manual configuration) by default - in the top-level
installation directory (CMAKE_INSTALL_PREFIX)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-06-10 14:06:44 +03:00
Ivailo Monev
594d3ebb29 misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-06-09 01:11:10 +00:00
Ivailo Monev
7373359c8c run tests in the CMake binary alternative of the current directory
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-06-08 17:31:27 +00:00
Ivailo Monev
e98985b359 fix author warning about ARM sources
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-05-27 15:45:14 +00:00
Ivailo Monev
9acce7fa24 adjust package files
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-05-03 17:38:17 +00:00
Ivailo Monev
d1d4268a92 cleanup build macros
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-05-03 17:02:01 +00:00
Ivailo Monev
deb1a40c42 disable installation of bootstrapped Katie
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-05-03 17:01:32 +00:00
Ivailo Monev
803e2710c6 make configuration paths cached
that makes them overridable even from external projects (which can be bad
since it can make translations be installed in the wrong path) but for
those who build Katie itself it would be easier to change the paths from
the CMake GUI or their IDE

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-05-03 17:00:51 +00:00
Ivailo Monev
29d0375f1d change the way configuration directories are handled
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-26 02:43:35 +00:00
Ivailo Monev
86c05a6208 do not add all libraries the component it linted to to te pkgconfi file
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-18 14:52:58 +00:00
Ivailo Monev
2ce91582f4 remove workarounds for package target with bootstrap
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-07 19:27:50 +00:00
Ivailo Monev
0e7de5d972 fix package target for Windows platform
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-02-29 18:31:07 +02:00
Ivailo Monev
e76599e25c link tests to KtMain on Windows
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-02-16 21:10:43 +02:00
Ivailo Monev
9cae2e9e5d most tests/benchamrk require GUI access, enable that
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-01-31 23:24:32 +02:00
Ivailo Monev
452cc53d4e some benchmarks expect SRCDIR to end with separator
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-01-29 23:21:02 +02:00
Ivailo Monev
d382297689 do not build and use bootstrapped UIC and RCC
this allows RCC to compress the resources, if it's worth it

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-01-27 19:15:15 +02:00
Ivailo Monev
647e435ea2 setup flags for executables and shared targets
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-01-27 01:19:07 +02:00
Ivailo Monev
6433264e64 add macro for tests and automatically add them on configuration
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-01-16 15:06:55 +02:00
Ivailo Monev
4205a2ec19 rework KATIE_SETUP_SOURCES CMake macro
now that the assembler language is enabled in the build system the macro
turned out to be a bit bogus and it has to handle sources control too
because some CPU specifiec sources were, previously, added unconditionally
to targets leading to build failures (especially with assembly).

CPU tests now declare variables that are cached and can be changed by the
user to avoid touching parent scope from the test macros (previously
functions for that reason).

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-01-10 14:53:19 +02:00
Ivailo Monev
4400040671 fix error detection in headers optimizer cmake file
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-12-21 23:32:05 +02:00
Ivailo Monev
2d2876d7b5 make genmap script python 3 compatible, call it with python interpreter
on freebsd the shebang may not be correct as it, usually, places
files under /usr/local prefix instead of /usr thus calling with
what the PythonInterp cmake module has found is more reliable
cross-platform


Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-12-19 20:21:22 +02:00
Ivailo Monev
2a89c541b8 report errors from external processes (genmap and unifdef)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-12-19 20:06:37 +02:00
Ivailo Monev
032124aa48 build native tools when cross-compiling
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-12-16 00:04:18 +02:00
Ivailo Monev
bfbc380756 initial import
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-12-10 05:06:13 +02:00