Skip to content

Commit

Permalink
cmake: Fix release build
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsergio committed Jan 19, 2025
1 parent df5684e commit 91c2660
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
20 changes: 13 additions & 7 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
{
"version": 3,
"configurePresets": [
{
"name": "base",
"environment": {
"CXX": "clang++",
"CC": "clang"
},
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
},
"generator": "Ninja"
},
{
"name": "dev",
"inherits": "base",
"description": "dev",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build-dev",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"DEVELOPER_BUILD": "ON"
},
"environment": {
"CXX": "clang++",
"CC": "clang"
}
},
{
Expand Down Expand Up @@ -45,12 +52,11 @@
},
{
"name": "rel",
"inherits": "base",
"description": "rel",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build-rel",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"QT_EMBEDDER_AOT": "ON"
}
}
Expand Down
2 changes: 2 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ int main(int argc, char **argv)
features |= Embedder::Feature::GL;

Embedder embedder(features);
#ifdef DEVELOPER_BUILD
registerDummyMethodChannel(embedder);
#endif

const auto icuPath = std::string(FLUTTER_ICUDTL_DIR) + std::string("/icudtl.dat");

Expand Down

0 comments on commit 91c2660

Please sign in to comment.