File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -183,6 +183,10 @@ if(SNAP_BUILD)
183183 add_definitions (-DSNAP_BUILD )
184184endif ()
185185
186+ if (FLATPAK_BUILD)
187+ add_definitions (-DFLATPAK_BUILD )
188+ endif ()
189+
186190# Uninstall support
187191configure_file (
188192 "${CMAKE_CURRENT_SOURCE_DIR} /cmake_uninstall.cmake.in"
Original file line number Diff line number Diff line change 472472 "config-opts" : [
473473 " -DCMAKE_BUILD_TYPE:STRING=Release" ,
474474 " -DWITH_MANPAGES:BOOL=OFF" ,
475- " -DWITH_TELEPATHY:BOOL=OFF"
475+ " -DWITH_TELEPATHY:BOOL=OFF" ,
476+ " -DFLATPAK_BUILD:BOOL=ON"
476477 ],
477478 "sources" : [
478479 {
Original file line number Diff line number Diff line change @@ -360,6 +360,14 @@ JsonNode *remmina_stats_get_version()
360360#else
361361 json_builder_add_int_value (b , 0 );
362362#endif
363+
364+ json_builder_set_member_name (b , "flatpak_build" );
365+ #ifdef FLATPAK_BUILD
366+ json_builder_add_int_value (b , 1 );
367+ #else
368+ json_builder_add_int_value (b , 0 );
369+ #endif
370+
363371 json_builder_end_object (b );
364372 r = json_builder_get_root (b );
365373 g_object_unref (b );
You can’t perform that action at this time.
0 commit comments