|
1 |
| -############################################################################### |
2 |
| -# Copyright (c) 2018, 2018 IBM Corp. and others |
3 |
| -# |
4 |
| -# This program and the accompanying materials are made available under |
5 |
| -# the terms of the Eclipse Public License 2.0 which accompanies this |
6 |
| -# distribution and is available at https://www.eclipse.org/legal/epl-2.0/ |
7 |
| -# or the Apache License, Version 2.0 which accompanies this distribution and |
8 |
| -# is available at https://www.apache.org/licenses/LICENSE-2.0. |
9 |
| -# |
10 |
| -# This Source Code may also be made available under the following |
11 |
| -# Secondary Licenses when the conditions for such availability set |
12 |
| -# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU |
13 |
| -# General Public License, version 2 with the GNU Classpath |
14 |
| -# Exception [1] and GNU General Public License, version 2 with the |
15 |
| -# OpenJDK Assembly Exception [2]. |
16 |
| -# |
17 |
| -# [1] https://www.gnu.org/software/classpath/license.html |
18 |
| -# [2] http://openjdk.java.net/legal/assembly-exception.html |
19 |
| -# |
20 |
| -# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception |
21 |
| -############################################################################### |
22 |
| - |
23 |
| -include(OmrCompilerSupport) |
24 |
| - |
25 |
| -# Add the contents of the macro to CORE_COMPILER_OBJECTS in this scope. |
26 |
| -# The library name parameter is currently ignored. |
27 |
| -macro(compiler_library libraryname) |
28 |
| - list(APPEND CORE_COMPILER_OBJECTS ${ARGN}) |
29 |
| -endmacro(compiler_library) |
30 |
| - |
31 |
| -# Instead of a real add_subdirectory we just include the file so everything stays |
32 |
| -# in the same scope. |
33 |
| -macro(add_compiler_subdirectory dir) |
34 |
| - include("${omr_SOURCE_DIR}/compiler/${dir}/CMakeLists.txt") |
35 |
| -endmacro(add_compiler_subdirectory) |
36 |
| - |
37 |
| - |
38 |
| -# create an object list which is populated in the subdirectories |
39 |
| -set(CORE_COMPILER_OBJECTS "") |
40 |
| - |
41 |
| -add_compiler_subdirectory(codegen) |
42 |
| -add_compiler_subdirectory(compile) |
43 |
| -add_compiler_subdirectory(control) |
44 |
| -add_compiler_subdirectory(env) |
45 |
| -add_compiler_subdirectory(il) |
46 |
| -add_compiler_subdirectory(ilgen) |
47 |
| -add_compiler_subdirectory(infra) |
48 |
| -add_compiler_subdirectory(optimizer) |
49 |
| -add_compiler_subdirectory(ras) |
50 |
| -add_compiler_subdirectory(runtime) |
51 |
| - |
52 |
| -add_compiler_subdirectory(${TR_TARGET_ARCH}) |
53 |
| - |
54 |
| -# Promote the list variable into a global property. |
55 |
| -# That way we dont need to worry about scoping issues. |
56 |
| -set_property(GLOBAL PROPERTY OMR_CORE_COMPILER_OBJECTS ${CORE_COMPILER_OBJECTS}) |
| 1 | +############################################################################### |
| 2 | +# Copyright (c) 2018, 2018 IBM Corp. and others |
| 3 | +# |
| 4 | +# This program and the accompanying materials are made available under |
| 5 | +# the terms of the Eclipse Public License 2.0 which accompanies this |
| 6 | +# distribution and is available at https://www.eclipse.org/legal/epl-2.0/ |
| 7 | +# or the Apache License, Version 2.0 which accompanies this distribution and |
| 8 | +# is available at https://www.apache.org/licenses/LICENSE-2.0. |
| 9 | +# |
| 10 | +# This Source Code may also be made available under the following |
| 11 | +# Secondary Licenses when the conditions for such availability set |
| 12 | +# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU |
| 13 | +# General Public License, version 2 with the GNU Classpath |
| 14 | +# Exception [1] and GNU General Public License, version 2 with the |
| 15 | +# OpenJDK Assembly Exception [2]. |
| 16 | +# |
| 17 | +# [1] https://www.gnu.org/software/classpath/license.html |
| 18 | +# [2] http://openjdk.java.net/legal/assembly-exception.html |
| 19 | +# |
| 20 | +# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception |
| 21 | +############################################################################### |
| 22 | + |
| 23 | +include(OmrCompilerSupport) |
| 24 | + |
| 25 | +# Add the contents of the macro to CORE_COMPILER_OBJECTS in this scope. |
| 26 | +# The library name parameter is currently ignored. |
| 27 | +macro(compiler_library libraryname) |
| 28 | + list(APPEND CORE_COMPILER_OBJECTS ${ARGN}) |
| 29 | +endmacro(compiler_library) |
| 30 | + |
| 31 | +# Instead of a real add_subdirectory we just include the file so everything stays |
| 32 | +# in the same scope. |
| 33 | +macro(add_compiler_subdirectory dir) |
| 34 | + include("${omr_SOURCE_DIR}/compiler/${dir}/CMakeLists.txt") |
| 35 | +endmacro(add_compiler_subdirectory) |
| 36 | + |
| 37 | + |
| 38 | +# create an object list which is populated in the subdirectories |
| 39 | +set(CORE_COMPILER_OBJECTS "") |
| 40 | + |
| 41 | +add_compiler_subdirectory(codegen) |
| 42 | +add_compiler_subdirectory(compile) |
| 43 | +add_compiler_subdirectory(control) |
| 44 | +add_compiler_subdirectory(env) |
| 45 | +add_compiler_subdirectory(il) |
| 46 | +add_compiler_subdirectory(ilgen) |
| 47 | +add_compiler_subdirectory(infra) |
| 48 | +add_compiler_subdirectory(optimizer) |
| 49 | +add_compiler_subdirectory(ras) |
| 50 | +add_compiler_subdirectory(runtime) |
| 51 | + |
| 52 | +add_compiler_subdirectory(${TR_TARGET_ARCH}) |
| 53 | + |
| 54 | +# Promote the list variable into a global property. |
| 55 | +# That way we dont need to worry about scoping issues. |
| 56 | +set_property(GLOBAL PROPERTY OMR_CORE_COMPILER_OBJECTS ${CORE_COMPILER_OBJECTS}) |
0 commit comments