Skip to content

Commit

Permalink
[OGL] Sort OpenGL/common/include/ header mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrzybow authored and gitsgh committed Aug 30, 2024
1 parent be9bdb0 commit 4cddc37
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ third_party/*
recorder/gits_config.txt

# OpenGL
OpenGL/common/include/glIDswitch.h
OpenGL/common/include/glIDs.h
OpenGL/common/glFunctions.cpp
OpenGL/common/include/glDrivers.h
OpenGL/common/include/glFunctions.h
OpenGL/common/include/glIDs.h
OpenGL/common/include/glIDswitch.h
OpenGL/recorder/include/openglRecorderWrapperAuto.h
OpenGL/recorder/include/openglRecorderWrapperIfaceAuto.h
OpenGL/recorder/openglRecorderWrapperAuto.cpp
Expand Down
4 changes: 2 additions & 2 deletions OpenGL/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ set_target_properties(OpenGL_codegen PROPERTIES FOLDER OpenGL)
# GENERATED property is set in CMakeLists.txt in each directory, but this
# staying here doesn't do any harm
set_source_files_properties(
${CMAKE_CURRENT_SOURCE_DIR}/common/include/glIDs.h
${CMAKE_CURRENT_SOURCE_DIR}/common/include/glIDswitch.h
${CMAKE_CURRENT_SOURCE_DIR}/common/include/glDrivers.h
${CMAKE_CURRENT_SOURCE_DIR}/common/include/glFunctions.h
${CMAKE_CURRENT_SOURCE_DIR}/common/include/glIDs.h
${CMAKE_CURRENT_SOURCE_DIR}/common/include/glIDswitch.h
${CMAKE_CURRENT_SOURCE_DIR}/common/glFunctions.cpp
${CMAKE_CURRENT_SOURCE_DIR}/recorder/openglRecorderWrapperAuto.cpp
${CMAKE_CURRENT_SOURCE_DIR}/recorder/include/openglRecorderWrapperAuto.h
Expand Down
6 changes: 3 additions & 3 deletions OpenGL/codegen/gitsGLFuncsGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1232,11 +1232,11 @@ def copy_file(filename, subdir):
shutil.copy2(filename, path)


move_file('glFunctions.cpp', 'common')
move_file('glFunctions.h', 'common/include')
move_file('glDrivers.h', 'common/include')
copy_file('glIDs.h', 'common/include')
move_file('glIDswitch.h', 'common/include')
move_file('glDrivers.h', 'common/include')
move_file('glFunctions.h', 'common/include')
move_file('glFunctions.cpp', 'common')
move_file('openglRecorderWrapperAuto.cpp', 'recorder')
move_file('openglRecorderWrapperAuto.h', 'recorder/include')
move_file('openglRecorderWrapperIfaceAuto.h', 'recorder/include')
Expand Down
12 changes: 6 additions & 6 deletions OpenGL/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@
# ===================== end_copyright_notice ==============================

set_source_files_properties(
${CMAKE_CURRENT_SOURCE_DIR}/include/glIDs.h
${CMAKE_CURRENT_SOURCE_DIR}/include/glIDswitch.h
${CMAKE_CURRENT_SOURCE_DIR}/include/glDrivers.h
${CMAKE_CURRENT_SOURCE_DIR}/include/glFunctions.h
${CMAKE_CURRENT_SOURCE_DIR}/include/glIDs.h
${CMAKE_CURRENT_SOURCE_DIR}/include/glIDswitch.h
${CMAKE_CURRENT_SOURCE_DIR}/glFunctions.cpp
PROPERTIES GENERATED 1
)

add_library(OpenGL_common
include/glIDs.h
include/glIDswitch.h
include/clientArrays.h
include/eglArguments.h
include/eglFunctions.h
include/gitsFunctions.h
include/glDrivers.h
include/glFunctions.h
include/glIDs.h
include/glIDswitch.h
include/glxArguments.h
include/glxFunctions.h
include/mapping.h
Expand Down Expand Up @@ -87,10 +87,10 @@ add_library(OpenGL_common
)

source_group("Generated Files" FILES
include/glIDs.h
include/glIDswitch.h
include/glDrivers.h
include/glFunctions.h
include/glIDs.h
include/glIDswitch.h
glFunctions.cpp)

target_link_libraries(OpenGL_common common)
Expand Down

0 comments on commit 4cddc37

Please sign in to comment.