Changeset 667c3fc in mainline
- Timestamp:
- 2019-08-17T12:49:43Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 56440a5
- Parents:
- d4b30cf
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-30 13:30:45)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-17 12:49:43)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
rd4b30cf r667c3fc 50 50 -include $(COMMON_MAKEFILE) 51 51 52 # TODO: make meson reconfigure correctly when library build changes53 54 ifeq ($(CONFIG_BUILD_SHARED_LIBS),y)55 MESON_ARGS = -Ddefault_library=shared56 else57 MESON_ARGS = -Ddefault_library=static58 endif59 60 52 CROSS_TARGET ?= $(UARCH) 61 53 … … 69 61 70 62 $(BUILD_DIR)/build.ninja: $(CONFIG_MAKEFILE) $(VERSION_FILE) 71 meson . $(BUILD_DIR) --cross-file meson/cross/$(CROSS_TARGET) $(MESON_ARGS)63 meson . $(BUILD_DIR) --cross-file meson/cross/$(CROSS_TARGET) 72 64 73 65 meson: $(COMMON_MAKEFILE) $(CONFIG_MAKEFILE) $(CONFIG_HEADER) $(ERRNO_HEADER) $(BUILD_DIR)/build.ninja -
meson.build
rd4b30cf r667c3fc 2 2 # TODO: jobfile 3 3 # TODO: lto 4 # TODO: CONFIG_BUILD_SHARED_LIBS5 4 # TODO: fix clang build 6 5 … … 8 7 'HelenOS', 9 8 [ 'c', 'cpp' ], 10 default_options : ['buildtype=plain', 'c_std=gnu11', 'cpp_std=c++17', 'warning_level=3', 'werror=false', 'b_staticpic=false', ' default_library=shared', 'prefix=/' ],9 default_options : ['buildtype=plain', 'c_std=gnu11', 'cpp_std=c++17', 'warning_level=3', 'werror=false', 'b_staticpic=false', 'prefix=/' ], 11 10 meson_version: '>=0.50.1', 12 11 ) … … 83 82 '@INPUT@', 84 83 ] 85 86 if get_option('default_library') == 'both'87 error('You must use either shared or static for default_library.')88 endif89 84 90 85 debug_options = false -
uspace/lib/meson.build
rd4b30cf r667c3fc 1 always_static = (get_option('default_library') == 'static')1 always_static = not CONFIG_BUILD_SHARED_LIBS 2 2 3 3 # Which libraries are installed when CONFIG_DEVEL_FILES is enabled
Note:
See TracChangeset
for help on using the changeset viewer.