assembler.cpp
prebuilt/asmparse.c
)
+if(WIN32)
+ set(ILASM_RESOURCES Native.rc)
+ add_definitions(-DFX_VER_INTERNALNAME_STR=ilasm.exe)
+endif(WIN32)
+
set_source_files_properties( prebuilt/asmparse.c PROPERTIES LANGUAGE CXX )
if(CLR_CMAKE_PLATFORM_UNIX)
_add_executable(ilasm
${ILASM_SOURCES}
+ ${ILASM_RESOURCES}
)
set(ILASM_LINK_LIBRARIES
set(ILDASM_RESOURCES
${TARGET_CPP_FILE}
)
+else()
+ set(ILDASM_RESOURCES ../dasm.rc)
+ add_definitions(-DFX_VER_INTERNALNAME_STR=ildasm.exe)
endif(CLR_CMAKE_PLATFORM_UNIX)
set(ILDASM_SOURCES
add_definitions(-DFEATURE_CORECLR)
add_definitions(-DFX_VFT=VFT_DLL)
+add_definitions(-DFX_VER_INTERNALNAME_STR=ildasmrc.dll)
+
set(ILDASM_RESOURCES
../dasm.rc
)
add_definitions(-DARM_SOFTFP)
endif (ARM_SOFTFP)
+if(WIN32)
+ set(JIT_RESOURCES Native.rc)
+endif(WIN32)
+
set( JIT_SOURCES
alloc.cpp
assertionprop.cpp
${JIT_SOURCES}
${ARCH_SOURCES}
${ARCH_LEGACY_SOURCES}
+ ${JIT_RESOURCES}
)
convert_to_absolute_path(SOURCES ${SOURCES})
set(JIT_BASE_NAME ryujit)
endif()
+if(WIN32)
+ add_definitions(-DFX_VER_INTERNALNAME_STR=${JIT_BASE_NAME}.dll)
+endif(WIN32)
+
add_subdirectory(dll)
add_subdirectory(crossgen)
add_subdirectory(standalone)