Added a BuildPlatformTest rule for building tests that shall run on the build platform..
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3638 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a8c44e89f8
commit
9fcaa61d04
17
Jamrules
17
Jamrules
@ -1612,6 +1612,23 @@ rule BuildPlatformMain
|
||||
C++FLAGS = $(oldC++FLAGS) ;
|
||||
}
|
||||
|
||||
rule BuildPlatformTest
|
||||
{
|
||||
# Usage BuildPlatformTest <target> : <sources> ;
|
||||
|
||||
local target = $(1) ;
|
||||
local sources = $(2) ;
|
||||
|
||||
BuildPlatformMain $(target) : $(sources) ;
|
||||
local relPath ;
|
||||
if [ FIsPrefix src tests : $(SUBDIR_TOKENS) ] {
|
||||
relPath = $(SUBDIR_TOKENS[3-]) ;
|
||||
} else {
|
||||
relPath = $(SUBDIR_TOKENS[2-]) ;
|
||||
}
|
||||
MakeLocate $(target) : [ FDirName $(OBOS_TEST_DIR) $(relPath) ] ;
|
||||
}
|
||||
|
||||
rule KernelConfigSection
|
||||
{
|
||||
# KernelConfigSection <section> : <type> : <file> ;
|
||||
|
Loading…
Reference in New Issue
Block a user