3 define Build
/Configure
/Default
4 (cd
$(PKG_BUILD_DIR
); \
5 CFLAGS
="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
6 CXXFLAGS
="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
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
) \
22 -DCMAKE_INSTALL_PREFIX
=/usr \
28 define Build
/InstallDev
/cmake
30 $(CP
) $(PKG_INSTALL_DIR
)/* $(1)/
33 Build
/InstallDev
= $(if
$(CMAKE_INSTALL
),$(Build
/InstallDev
/cmake
))