[buildroot] prepare support for libiconv, libintl stub/full switching
[openwrt.git] / include / cmake.mk
1 PKG_INSTALL:=1
2
3 define Build/Configure/Default
4 (cd $(PKG_BUILD_DIR); \
5 CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
6 CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
7 cmake \
8 -DCMAKE_SYSTEM_NAME=Linux \
9 -DCMAKE_SYSTEM_VERSION=1 \
10 -DCMAKE_SYSTEM_PROCESSOR=$(ARCH) \
11 -DCMAKE_BUILD_TYPE=Release \
12 -DCMAKE_C_COMPILER=$(TOOLCHAIN_DIR)/bin/$(TARGET_CC) \
13 -DCMAKE_CXX_COMPILER=$(TOOLCHAIN_DIR)/bin/$(TARGET_CXX) \
14 -DCMAKE_EXE_LINKER_FLAGS="$(TARGET_LDFLAGS)" \
15 -DCMAKE_MODULE_LINKER_FLAGS="$(TARGET_LDFLAGS)" \
16 -DCMAKE_SHARED_LINKER_FLAGS="$(TARGET_LDFLAGS)" \
17 -DCMAKE_FIND_ROOT_PATH=$(STAGING_DIR) \
18 -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=$(STAGING_DIR_HOST) \
19 -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=$(STAGING_DIR) \
20 -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=$(STAGING_DIR) \
21 -DCMAKE_STRIP=: \
22 -DCMAKE_INSTALL_PREFIX=/usr \
23 $(CMAKE_OPTIONS) \
24 . \
25 )
26 endef
27
28 define Build/InstallDev/cmake
29 $(INSTALL_DIR) $(1)
30 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
31 endef
32
33 Build/InstallDev = $(if $(CMAKE_INSTALL),$(Build/InstallDev/cmake))
This page took 0.040038 seconds and 5 git commands to generate.