nm-applet: fix some buildproblems
[openembedded.git] / classes / sdk.bbclass
blobeb34bd04b5c66776e4e75677cfd734293d12885c
1 # SDK packages are built either explicitly by the user,
2 # or indirectly via dependency.  No need to be in 'world'.
3 EXCLUDE_FROM_WORLD = "1"
5 # Save MULTIMACH_ARCH
6 OLD_MULTIMACH_ARCH := "${MULTIMACH_ARCH}"
7 # Save PACKAGE_ARCH
8 OLD_PACKAGE_ARCH := ${PACKAGE_ARCH}
9 PACKAGE_ARCH = "${BUILD_ARCH}-${OLD_PACKAGE_ARCH}-sdk"
10 # Also save BASE_PACKAGE_ARCH since HOST_ARCH can influence it
11 OLD_BASE_PACKAGE_ARCH := "${BASE_PACKAGE_ARCH}"
12 BASE_PACKAGE_ARCH = "${OLD_BASE_PACKAGE_ARCH}"
14 STAGING_DIR_HOST = "${STAGING_DIR}/${HOST_SYS}-sdk"
15 STAGING_DIR_TARGET = "${STAGING_DIR}/${OLD_MULTIMACH_ARCH}${TARGET_VENDOR}-${TARGET_OS}"
17 HOST_ARCH = "${BUILD_ARCH}"
18 HOST_VENDOR = "${BUILD_VENDOR}"
19 HOST_OS = "${BUILD_OS}"
20 HOST_PREFIX = "${BUILD_PREFIX}"
21 HOST_CC_ARCH = "${BUILD_CC_ARCH}"
22 #HOST_SYS = "${HOST_ARCH}${TARGET_VENDOR}-${HOST_OS}"
23 HOST_EXEEXT = "${BUILD_EXEEXT}"
25 CPPFLAGS = "${BUILD_CPPFLAGS}"
26 CFLAGS = "${BUILD_CFLAGS}"
27 CXXFLAGS = "${BUILD_CFLAGS}"
28 LDFLAGS = "${BUILD_LDFLAGS}"
30 # Path prefixes
31 prefix = "${SDK_PATH}"
32 exec_prefix = "${prefix}"
33 base_prefix = "${prefix}"
35 # Base paths
36 export base_bindir = "${prefix}/bin"
37 export base_sbindir = "${prefix}/bin"
38 export base_libdir = "${prefix}/lib"
40 # Architecture independent paths
41 export datadir = "${prefix}/share"
42 export sysconfdir = "${prefix}/etc"
43 export sharedstatedir = "${datadir}/com"
44 export localstatedir = "${prefix}/var"
45 export infodir = "${datadir}/info"
46 export mandir = "${datadir}/man"
47 export docdir = "${datadir}/doc"
48 export servicedir = "${prefix}/srv"
50 # Architecture dependent paths
51 export bindir = "${prefix}/bin"
52 export sbindir = "${prefix}/bin"
53 export libexecdir = "${prefix}/libexec"
54 export libdir = "${prefix}/lib"
55 export includedir = "${prefix}/include"
56 export oldincludedir = "${prefix}/include"
58 FILES_${PN} = "${prefix}"
59 FILES_${PN}-dbg += "${prefix}/.debug \
60                     ${prefix}/bin/.debug \
61                    "
63 export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"