Add compilation
This commit is contained in:
parent
43f951b253
commit
435846db9a
@ -172,6 +172,18 @@ target_include_directories(${CORE_WIDGETS_ADDON} PRIVATE
|
||||
"${PROJECT_SOURCE_DIR}/src/cpp/include/nodegui"
|
||||
)
|
||||
|
||||
|
||||
if (WIN32)
|
||||
target_compile_definitions(${CORE_WIDGETS_ADDON} PRIVATE
|
||||
ENABLE_DLL_EXPORT=1
|
||||
)
|
||||
target_link_libraries(${CORE_WIDGETS_ADDON} PRIVATE
|
||||
"${PROJECT_SOURCE_DIR}/node_modules/@nodegui/qode/binaries/qode.lib"
|
||||
)
|
||||
target_compile_options(${CORE_WIDGETS_ADDON} PRIVATE "/MP4")
|
||||
|
||||
endif()
|
||||
|
||||
target_link_libraries(${CORE_WIDGETS_ADDON} PRIVATE
|
||||
"${CMAKE_JS_LIB}"
|
||||
Qt5::Widgets
|
||||
@ -179,11 +191,3 @@ target_link_libraries(${CORE_WIDGETS_ADDON} PRIVATE
|
||||
Qt5::Gui
|
||||
)
|
||||
|
||||
|
||||
if (WIN32)
|
||||
target_compile_definitions(${CORE_WIDGETS_ADDON} PRIVATE
|
||||
ENABLE_DLL_EXPORT=1
|
||||
)
|
||||
target_compile_options(${CORE_WIDGETS_ADDON} PRIVATE "/MP4")
|
||||
|
||||
endif()
|
||||
@ -1,8 +1,14 @@
|
||||
#ifdef _WIN32
|
||||
# define QODE_IMPORT __declspec(dllimport)
|
||||
#else
|
||||
# define QODE_IMPORT
|
||||
#endif
|
||||
|
||||
#pragma once
|
||||
// From Qode headers
|
||||
namespace qode {
|
||||
extern int qode_argc;
|
||||
extern char **qode_argv;
|
||||
typedef int (*QodeCustomRunLoopFunc)();
|
||||
extern void InjectCustomRunLoop(QodeCustomRunLoopFunc customRunLoop);
|
||||
QODE_IMPORT extern int qode_argc;
|
||||
QODE_IMPORT extern char **qode_argv;
|
||||
QODE_IMPORT typedef int (*QodeCustomRunLoopFunc)();
|
||||
QODE_IMPORT extern void InjectCustomRunLoop(QodeCustomRunLoopFunc customRunLoop);
|
||||
} // namespace qode
|
||||
Loading…
Reference in New Issue
Block a user