glue: renamed output files to better represent their actual purpose
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>
Thu, 13 Jul 2017 07:30:04 +0000 (09:30 +0200)
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>
Tue, 8 Aug 2017 15:24:00 +0000 (17:24 +0200)
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
generate-binding-glue.py [moved from generate-binding.py with 97% similarity]
src/CMakeLists.txt
src/app.hpp
src/main.cpp

similarity index 97%
rename from generate-binding.py
rename to generate-binding-glue.py
index 6c700de..cec4fea 100644 (file)
@@ -98,12 +98,12 @@ API = {
 }
 
 def main():
-    with open('afb_binding.inl', 'w') as out:
+    with open('afb_binding_glue.inl', 'w') as out:
         set_output(out)
         p('// This file was generated, do not edit', '')
         generate_names(API)
         emit_binding(API)
-    with open('afb_api.hpp', 'w') as out:
+    with open('afb_binding_api.hpp', 'w') as out:
         set_output(out)
         p('// This file was generated, do not edit', '')
         emit_afb_api(API)
index a0d3db6..ebb1946 100644 (file)
@@ -8,9 +8,9 @@ pkg_check_modules(SD REQUIRED libsystemd>=222)
 set(CMAKE_SHARED_MODULE_PREFIX "")
 
 add_custom_command(
-   OUTPUT afb_api.hpp afb_binding.inl
-   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../generate-binding.py
-   COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/../generate-binding.py)
+   OUTPUT afb_binding_api.hpp afb_binding_glue.inl
+   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../generate-binding-glue.py
+   COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/../generate-binding-glue.py)
 
 add_library(winman MODULE
    main.cpp
@@ -18,7 +18,7 @@ add_library(winman MODULE
    wayland.hpp
    util.cpp
    util.hpp
-   ${IVI_CON_PROTO} json_helper.cpp json_helper.hpp app.hpp app.cpp result.hpp afb_api.hpp afb_binding.inl)
+   ${IVI_CON_PROTO} json_helper.cpp json_helper.hpp app.hpp app.cpp result.hpp afb_binding_api.hpp afb_binding_glue.inl)
 
 target_include_directories(winman
     PRIVATE
index f6238af..0fb929d 100644 (file)
@@ -10,7 +10,7 @@
 
 #include "wayland.hpp"
 #include "result.hpp"
-#include "afb_api.hpp"
+#include "afb_binding_api.hpp"
 
 namespace wl {
     struct display;
index 6de8597..8bb0b5c 100644 (file)
@@ -109,7 +109,7 @@ int binding_init() noexcept {
 
 } // namespace
 
-#include "afb_binding.inl"
+#include "afb_binding_glue.inl"
 
 extern "C" const struct afb_binding_v2 afbBindingV2 = {
    "winman", NULL, NULL, winman_verbs, NULL, binding_init, NULL, 1};