mirror of
https://gitee.com/openharmony/third_party_vulkan-loader
synced 2024-11-23 15:20:52 +00:00
Add an option to disable MASM
MASM generally goes with msvc, but it is not necessarily available with MinGW.
This commit is contained in:
parent
428654245a
commit
0d912af509
1
BUILD.md
1
BUILD.md
@ -174,6 +174,7 @@ on/off options currently supported by this repository:
|
||||
| BUILD_WSI_DIRECTFB_SUPPORT | Linux | `OFF` | Build the loader with the DirectFB entry points enabled. Without this, the DirectFB headers should not be needed, but the extension `VK_EXT_directfb_surface` won't be available. |
|
||||
| ENABLE_WIN10_ONECORE | Windows | `OFF` | Link the loader to the [OneCore](https://msdn.microsoft.com/en-us/library/windows/desktop/mt654039.aspx) umbrella library, instead of the standard Win32 ones. |
|
||||
| USE_CCACHE | Linux | `OFF` | Enable caching with the CCache program. |
|
||||
| USE_MASM | Windows | `ON` | Controls whether to build assembly files with MS assembler, else fallback to C code |
|
||||
| BUILD_STATIC_LOADER | macOS | `OFF` | This allows the loader to be built as a static library on macOS. Not tested, use at your own risk. |
|
||||
|
||||
The following is a table of all string options currently supported by this repository:
|
||||
|
@ -147,7 +147,10 @@ if(WIN32)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
enable_language(ASM_MASM)
|
||||
option(USE_MASM "Use MASM" ON)
|
||||
if (USE_MASM)
|
||||
enable_language(ASM_MASM)
|
||||
endif ()
|
||||
if(CMAKE_ASM_MASM_COMPILER_WORKS OR JWASM_FOUND)
|
||||
if(MINGW)
|
||||
set(CMAKE_ASM_MASM_FLAGS ${CMAKE_ASM_MASM_FLAGS} ${JWASM_FLAGS})
|
||||
|
Loading…
Reference in New Issue
Block a user