equal
deleted
inserted
replaced
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 |