Path: blob/master/runtime/gc_glue_java/CMakeLists.txt
5990 views
################################################################################1# Copyright (c) 2017, 2020 IBM Corp. and others2#3# This program and the accompanying materials are made available under4# the terms of the Eclipse Public License 2.0 which accompanies this5# distribution and is available at https://www.eclipse.org/legal/epl-2.0/6# or the Apache License, Version 2.0 which accompanies this distribution and7# is available at https://www.apache.org/licenses/LICENSE-2.0.8#9# This Source Code may also be made available under the following10# Secondary Licenses when the conditions for such availability set11# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU12# General Public License, version 2 with the GNU Classpath13# Exception [1] and GNU General Public License, version 2 with the14# OpenJDK Assembly Exception [2].15#16# [1] https://www.gnu.org/software/classpath/license.html17# [2] http://openjdk.java.net/legal/assembly-exception.html18#19# 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-exception20################################################################################2122set(j9vm_gc_glue_sources23${CMAKE_CURRENT_SOURCE_DIR}/ArrayletObjectModel.cpp24${CMAKE_CURRENT_SOURCE_DIR}/ArrayletObjectModelBase.cpp25${CMAKE_CURRENT_SOURCE_DIR}/CollectorLanguageInterfaceImpl.cpp26${CMAKE_CURRENT_SOURCE_DIR}/CompactDelegate.cpp27${CMAKE_CURRENT_SOURCE_DIR}/CompactSchemeFixupObject.cpp28${CMAKE_CURRENT_SOURCE_DIR}/CompactSchemeFixupRoots.cpp29${CMAKE_CURRENT_SOURCE_DIR}/ConcurrentMarkingDelegate.cpp30${CMAKE_CURRENT_SOURCE_DIR}/ConcurrentSafepointCallbackJava.cpp31${CMAKE_CURRENT_SOURCE_DIR}/EnvironmentDelegate.cpp32${CMAKE_CURRENT_SOURCE_DIR}/GlobalCollectorDelegate.cpp33${CMAKE_CURRENT_SOURCE_DIR}/JNICriticalRegion.cpp34${CMAKE_CURRENT_SOURCE_DIR}/MarkingDelegate.cpp35${CMAKE_CURRENT_SOURCE_DIR}/MarkingSchemeRootClearer.cpp36${CMAKE_CURRENT_SOURCE_DIR}/MarkingSchemeRootMarker.cpp37${CMAKE_CURRENT_SOURCE_DIR}/MetronomeDelegate.cpp38${CMAKE_CURRENT_SOURCE_DIR}/MixedObjectModel.cpp39${CMAKE_CURRENT_SOURCE_DIR}/ObjectModel.cpp40${CMAKE_CURRENT_SOURCE_DIR}/ObjectModelDelegate.cpp41${CMAKE_CURRENT_SOURCE_DIR}/ScavengerBackOutScanner.cpp42${CMAKE_CURRENT_SOURCE_DIR}/ScavengerDelegate.cpp43${CMAKE_CURRENT_SOURCE_DIR}/ScavengerRootClearer.cpp44${CMAKE_CURRENT_SOURCE_DIR}/ScavengerRootScanner.cpp45)4647target_sources(j9vm_gc_glue48INTERFACE49${j9vm_gc_glue_sources}50)5152target_link_libraries(j9vm_gc_glue53INTERFACE54j9vm_interface55j9vm_gc_includes5657j9gcvlhgc58j9modronstandard59j9realtime60j9gcstats61j9util62)6364target_include_directories(j9vm_gc_glue65INTERFACE66${j9vm_SOURCE_DIR}/gc_modron_standard67${j9vm_SOURCE_DIR}/gc_realtime68${j9vm_SOURCE_DIR}/gc_trace69${j9vm_SOURCE_DIR}/gc_vlhgc70)7172if(OMR_MIXED_REFERENCES_MODE_STATIC)73target_sources(j9vm_gc_glue_full74INTERFACE75${j9vm_gc_glue_sources}76)7778target_link_libraries(j9vm_gc_glue_full79INTERFACE80j9vm_interface81j9vm_gc_includes8283j9modronstandard_full84j9gcvlhgc_full85j9realtime_full86j9gcstats_full87j9util88)8990target_include_directories(j9vm_gc_glue_full91INTERFACE92${j9vm_SOURCE_DIR}/gc_modron_standard93${j9vm_SOURCE_DIR}/gc_realtime94${j9vm_SOURCE_DIR}/gc_trace95${j9vm_SOURCE_DIR}/gc_vlhgc96)97endif()9899j9vm_add_library(j9vm_util_glue INTERFACE)100target_sources(j9vm_util_glue101INTERFACE102${CMAKE_CURRENT_SOURCE_DIR}/UtilGlue.c103)104target_link_libraries(j9vm_util_glue105INTERFACE106j9vm_interface107)108109j9vm_add_library(j9vm_core_glue INTERFACE)110target_sources(j9vm_core_glue111INTERFACE112${CMAKE_CURRENT_SOURCE_DIR}/LanguageVMGlue.c113)114target_link_libraries(j9vm_core_glue115INTERFACE116j9vm_interface117j9vm_gc_includes118)119120# Note: we dont actually need to add any glue for the vm or ras components121j9vm_add_library(j9vm_vm_glue INTERFACE)122j9vm_add_library(j9vm_ras_glue INTERFACE)123124125