imxc 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/init.js +6 -0
- package/package.json +1 -1
package/dist/init.js
CHANGED
|
@@ -98,6 +98,11 @@ int main() {
|
|
|
98
98
|
glfwTerminate();
|
|
99
99
|
return 0;
|
|
100
100
|
}
|
|
101
|
+
|
|
102
|
+
#ifdef _WIN32
|
|
103
|
+
#include <windows.h>
|
|
104
|
+
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int) { return main(); }
|
|
105
|
+
#endif
|
|
101
106
|
`;
|
|
102
107
|
const APP_TSX = `export default function App() {
|
|
103
108
|
const [count, setCount] = useState(0);
|
|
@@ -376,6 +381,7 @@ add_executable(${projectName}
|
|
|
376
381
|
src/main.cpp
|
|
377
382
|
\${GENERATED}
|
|
378
383
|
)
|
|
384
|
+
set_target_properties(${projectName} PROPERTIES WIN32_EXECUTABLE $<CONFIG:Release>)
|
|
379
385
|
target_link_libraries(${projectName} PRIVATE imx::renderer)
|
|
380
386
|
target_include_directories(${projectName} PRIVATE \${CMAKE_BINARY_DIR}/generated)
|
|
381
387
|
|