# $Id: testcase-kBuild-define.kmk 2720 2014-01-01 22:59:50Z bird $ ## @file # kBuild - testcase for the kBuild-define-* directives. # # # Copyright (c) 2011-2013 knut st. osmundsen # # This file is part of kBuild. # # kBuild is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # kBuild is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with kBuild. If not, see # # #DEPTH = ../.. #include $(PATH_KBUILD)/header.kmk ## # Test if $($1) == $2 and raises an error if it isn't. # # @param 1 Something to apply '$' to. # @param 2 The expected value. TEST_EQ = $(if-expr "$($1)" == "$2",,$(error $1 is '$($1)' not '$2')) if 0 # object definition syntax: # kobject [extends [by <||>]] [object specific args...] # kendobj [ [name]] kobject kb-target MyTarget .TOOL = GCC .SOURCES = file.c kendobj else # Target definition. # kBuild-define-target [extends [by <||>]] [using