local haikuDevelPackage = haiku_devel.hpkg ; HaikuPackage $(haikuDevelPackage) ; local arch = $(TARGET_ARCH) ; local developDirTokens = develop ; # glue code AddFilesToPackage $(developDirTokens) lib : crti.o crtn.o init_term_dyn.o start_dyn.o haiku_version_glue.o ; # kernel AddFilesToPackage $(developDirTokens) lib : kernel.so : _KERNEL_ ; # additional libraries local developmentLibs = libroot_debug.so ; AddFilesToPackage lib : $(developmentLibs) ; # library symlinks local lib ; for lib in $(SYSTEM_LIBS) $(SYSTEM_LIBS_LIBGL_ALIASES) $(developmentLibs) { AddSymlinkToPackage $(developDirTokens) lib : /system/lib $(lib:BS) ; local abiVersion = [ on $(lib) return $(HAIKU_LIB_ABI_VERSION) ] ; if $(abiVersion) { local abiVersionedLib = $(lib:BS).$(abiVersion) ; AddSymlinkToPackage $(developDirTokens) lib : /system/lib $(abiVersionedLib) ; } } # static libraries AddFilesToPackage $(developDirTokens) lib : liblocalestub.a ; # the POSIX error code mapper library AddFilesToPackage $(developDirTokens) lib : libposix_error_mapper.a ; # ABI independent stuff # scripts: freetype-config, setgcc local scripts = freetype-config setgcc ; SEARCH on $(scripts) = [ FDirName $(HAIKU_TOP) data bin ] ; AddFilesToPackage bin : $(scripts) ; # headers AddHeaderDirectoryToPackage config ; AddHeaderDirectoryToPackage glibc ; AddHeaderDirectoryToPackage os ; AddHeaderDirectoryToPackage posix ; # private headers AddHeaderDirectoryToPackage private ; CopyDirectoryToPackage develop headers private libs compat : [ FDirName $(HAIKU_TOP) src libs compat freebsd_network ] : : -x *.c -x *.cpp -x *.awk -x Jamfile -x miidevs ; CopyDirectoryToPackage develop headers private libs compat : [ FDirName $(HAIKU_TOP) src libs compat freebsd_wlan ] : : -x *.c -x Jamfile ; # create be -> os symlink for now AddSymlinkToPackage $(developDirTokens) headers : os : be ; # BSD and GNU compatibility headers AddHeaderDirectoryToPackage compatibility bsd : bsd ; AddHeaderDirectoryToPackage compatibility gnu : gnu ; # third party libs headers AddHeaderDirectoryToPackage libs termcap : 3rdparty ; AddHeaderDirectoryToPackage libs tiff : 3rdparty ; CopyDirectoryToPackage develop headers : [ FDirName $(HAIKU_FREETYPE_DIR) develop headers 3rdparty ] ; CopyDirectoryToPackage develop headers : $(HAIKU_JPEG_HEADERS) : 3rdparty ; CopyDirectoryToPackage develop headers : $(HAIKU_LIBPNG_HEADERS) : 3rdparty ; # cpp headers if $(HAIKU_GCC_VERSION[1]) = 2 { # GCC 2 only -- for GCC 4 they come with the DevelopmentBase package CopyDirectoryToPackage $(developDirTokens) headers c++ : [ FDirName $(HAIKU_TOP) headers cpp ] : 2.95.3 ; } # OpenGL headers if $(TARGET_ARCH) = x86 { CopyDirectoryToPackage $(developDirTokens) headers os opengl : [ FDirName $(HAIKU_MESA_HEADERS) GL ] ; CopyDirectoryToPackage $(developDirTokens) headers os opengl : [ FDirName $(HAIKU_GLU_HEADERS) GL ] ; } BuildHaikuPackage $(haikuDevelPackage) : haiku_devel ;