Add new package haiku_cross_devel.hpkg
* This package is meant for providing haikuporter with a development environment for building cross packages.
This commit is contained in:
parent
dff45dfced
commit
773318958f
@ -2,6 +2,7 @@
|
||||
# subdirectory.
|
||||
local packages =
|
||||
Haiku
|
||||
HaikuCrossDevel
|
||||
HaikuDevel
|
||||
HaikuUserguide
|
||||
HaikuWelcome
|
||||
|
62
build/jam/packages/HaikuCrossDevel
Normal file
62
build/jam/packages/HaikuCrossDevel
Normal file
@ -0,0 +1,62 @@
|
||||
# This package is like the HaikuDevel package, but it is meant for cross
|
||||
# development, i.e. it assumes that a specific cross compiler is installed
|
||||
# on the Haiku system where this package is being used.
|
||||
# The main use of this package is to provide HaikuPorter with a development
|
||||
# environment for a cross-build Haiku platform.
|
||||
|
||||
local haikuCrossDevelPackage = haiku_cross_devel.hpkg ;
|
||||
HaikuPackage $(haikuCrossDevelPackage) ;
|
||||
|
||||
local arch ;
|
||||
if $(HAIKU_GCC_VERSION[1]) = 2 {
|
||||
arch = x86_gcc2 ;
|
||||
} else {
|
||||
arch = $(TARGET_ARCH) ;
|
||||
}
|
||||
local developCrossLibDirTokens = develop cross lib $(arch) ;
|
||||
|
||||
# glue code
|
||||
AddFilesToPackage $(developCrossLibDirTokens) :
|
||||
<src!system!glue!arch!$(TARGET_ARCH)>crti.o
|
||||
<src!system!glue!arch!$(TARGET_ARCH)>crtn.o
|
||||
<src!system!glue>init_term_dyn.o
|
||||
<src!system!glue>start_dyn.o
|
||||
<src!system!glue>haiku_version_glue.o
|
||||
;
|
||||
|
||||
# kernel
|
||||
AddFilesToPackage $(developCrossLibDirTokens) : kernel.so : _KERNEL_ ;
|
||||
|
||||
# libraries
|
||||
AddLibrariesToPackage $(developCrossLibDirTokens) :
|
||||
<revisioned>libroot.so
|
||||
;
|
||||
|
||||
# static libraries
|
||||
AddFilesToPackage $(developCrossLibDirTokens) : liblocalestub.a ;
|
||||
|
||||
# the POSIX error code mapper library
|
||||
AddFilesToPackage $(developCrossLibDirTokens) : libposix_error_mapper.a ;
|
||||
|
||||
# headers
|
||||
local developCrossHeadersDirTokens = develop cross headers $(arch) ;
|
||||
local headerDir ;
|
||||
for headerDir in config glibc os posix {
|
||||
CopyDirectoryToPackage $(developCrossHeadersDirTokens)
|
||||
: [ FDirName $(HAIKU_TOP) headers $(headerDir) ] ;
|
||||
}
|
||||
|
||||
# BSD and GNU compatibility headers
|
||||
#for headerDib in bsd gnu {
|
||||
# CopyDirectoryToPackage $(developCrossHeadersDirTokens)
|
||||
# : [ FDirName $(HAIKU_TOP) headers compatibility $(headerDir) ] ;
|
||||
#}
|
||||
|
||||
# cpp headers
|
||||
if $(HAIKU_GCC_VERSION[1]) = 2 {
|
||||
# GCC 2 only -- for GCC 4 they come with the DevelopmentBase package
|
||||
CopyDirectoryToPackage $(developCrossHeadersDirTokens) c++
|
||||
: [ FDirName $(HAIKU_TOP) headers cpp ] : 2.95.3 ;
|
||||
}
|
||||
|
||||
BuildHaikuPackage $(haikuCrossDevelPackage) : haiku_cross_devel ;
|
22
src/data/package_infos/haiku_cross_devel
Normal file
22
src/data/package_infos/haiku_cross_devel
Normal file
@ -0,0 +1,22 @@
|
||||
name haiku_cross_devel
|
||||
version R1~alpha3_pm-1
|
||||
architecture x86_gcc2
|
||||
summary "The Haiku base system files for cross development"
|
||||
|
||||
description "The package contains all files associated with the base system
|
||||
needed for cross development, like static libraries, glue code, library symlinks,
|
||||
header files, etc."
|
||||
|
||||
packager "The Haiku build system"
|
||||
vendor "Haiku Project"
|
||||
|
||||
copyrights "2001-2011 Haiku, Inc. et al"
|
||||
licenses "MIT"
|
||||
|
||||
provides {
|
||||
haiku_cross_devel = R1~alpha3_pm-1
|
||||
}
|
||||
|
||||
requires {
|
||||
haiku == R1~alpha3_pm-1
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user