make/common/TestFilesCompilation.gmk
changeset 54380 e297c7bb6469
parent 54076 4b4745d185eb
child 54824 adb3a3aa2e52
equal deleted inserted replaced
54379:40a7e2fc9beb 54380:e297c7bb6469
     1 #
     1 #
     2 # Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
     2 # Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4 #
     4 #
     5 # This code is free software; you can redistribute it and/or modify it
     5 # This code is free software; you can redistribute it and/or modify it
     6 # under the terms of the GNU General Public License version 2 only, as
     6 # under the terms of the GNU General Public License version 2 only, as
     7 # published by the Free Software Foundation.  Oracle designates this
     7 # published by the Free Software Foundation.  Oracle designates this
    75     $$(error Unknown type: $$($1_TYPE))
    75     $$(error Unknown type: $$($1_TYPE))
    76   endif
    76   endif
    77 
    77 
    78   # Locate all files with the matching prefix
    78   # Locate all files with the matching prefix
    79   $1_FILE_LIST := \
    79   $1_FILE_LIST := \
    80       $$(shell $$(FIND) $$($1_SOURCE_DIRS) -type f \( -name "$$($1_PREFIX)*.c" \
    80       $$(call FindFiles, $$($1_SOURCE_DIRS), $$($1_PREFIX)*.c $$($1_PREFIX)*.cpp)
    81           -o -name "$$($1_PREFIX)*.cpp" \))
       
    82 
    81 
    83   $1_EXCLUDE_PATTERN := $$(addprefix %/, $$($1_EXCLUDE))
    82   $1_EXCLUDE_PATTERN := $$(addprefix %/, $$($1_EXCLUDE))
    84   $1_FILTERED_FILE_LIST := $$(filter-out $$($1_EXCLUDE_PATTERN), $$($1_FILE_LIST))
    83   $1_FILTERED_FILE_LIST := $$(filter-out $$($1_EXCLUDE_PATTERN), $$($1_FILE_LIST))
    85 
    84 
    86   # Setup a compilation for each and every one of them
    85   # Setup a compilation for each and every one of them