Remove the *.in from all files.
Signed-off-b: Julian Wollrath <jwollrath@web.de>
This commit is contained in:
parent
130504a3d0
commit
6cc7be512c
|
@ -15,7 +15,6 @@ endif()
|
||||||
include(awesomeConfig.cmake)
|
include(awesomeConfig.cmake)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${SOURCE_DIR}
|
|
||||||
${BUILD_DIR}
|
${BUILD_DIR}
|
||||||
${AWESOME_COMMON_REQUIRED_INCLUDE_DIRS}
|
${AWESOME_COMMON_REQUIRED_INCLUDE_DIRS}
|
||||||
${AWESOME_REQUIRED_INCLUDE_DIRS}
|
${AWESOME_REQUIRED_INCLUDE_DIRS}
|
||||||
|
@ -36,45 +35,45 @@ set(AWE_DOC_FILES
|
||||||
${SOURCE_DIR}/LICENSE)
|
${SOURCE_DIR}/LICENSE)
|
||||||
|
|
||||||
set(AWE_SRCS
|
set(AWE_SRCS
|
||||||
${SOURCE_DIR}/awesome.c
|
${BUILD_DIR}/awesome.c
|
||||||
${SOURCE_DIR}/banning.c
|
${BUILD_DIR}/banning.c
|
||||||
${SOURCE_DIR}/color.c
|
${BUILD_DIR}/color.c
|
||||||
${SOURCE_DIR}/dbus.c
|
${BUILD_DIR}/dbus.c
|
||||||
${SOURCE_DIR}/draw.c
|
${BUILD_DIR}/draw.c
|
||||||
${SOURCE_DIR}/event.c
|
${BUILD_DIR}/event.c
|
||||||
${SOURCE_DIR}/ewmh.c
|
${BUILD_DIR}/ewmh.c
|
||||||
${SOURCE_DIR}/keygrabber.c
|
${BUILD_DIR}/keygrabber.c
|
||||||
${SOURCE_DIR}/luaa.c
|
${BUILD_DIR}/luaa.c
|
||||||
${SOURCE_DIR}/mouse.c
|
${BUILD_DIR}/mouse.c
|
||||||
${SOURCE_DIR}/mousegrabber.c
|
${BUILD_DIR}/mousegrabber.c
|
||||||
${SOURCE_DIR}/property.c
|
${BUILD_DIR}/property.c
|
||||||
${SOURCE_DIR}/root.c
|
${BUILD_DIR}/root.c
|
||||||
${SOURCE_DIR}/selection.c
|
${BUILD_DIR}/selection.c
|
||||||
${SOURCE_DIR}/spawn.c
|
${BUILD_DIR}/spawn.c
|
||||||
${SOURCE_DIR}/stack.c
|
${BUILD_DIR}/stack.c
|
||||||
${SOURCE_DIR}/strut.c
|
${BUILD_DIR}/strut.c
|
||||||
${SOURCE_DIR}/systray.c
|
${BUILD_DIR}/systray.c
|
||||||
${SOURCE_DIR}/xwindow.c
|
${BUILD_DIR}/xwindow.c
|
||||||
${SOURCE_DIR}/xkb.c
|
${BUILD_DIR}/xkb.c
|
||||||
${SOURCE_DIR}/common/atoms.c
|
${BUILD_DIR}/common/atoms.c
|
||||||
${SOURCE_DIR}/common/backtrace.c
|
${BUILD_DIR}/common/backtrace.c
|
||||||
${SOURCE_DIR}/common/buffer.c
|
${BUILD_DIR}/common/buffer.c
|
||||||
${SOURCE_DIR}/common/luaclass.c
|
${BUILD_DIR}/common/luaclass.c
|
||||||
${SOURCE_DIR}/common/lualib.c
|
${BUILD_DIR}/common/lualib.c
|
||||||
${SOURCE_DIR}/common/luaobject.c
|
${BUILD_DIR}/common/luaobject.c
|
||||||
${SOURCE_DIR}/common/util.c
|
${BUILD_DIR}/common/util.c
|
||||||
${SOURCE_DIR}/common/version.c
|
${BUILD_DIR}/common/version.c
|
||||||
${SOURCE_DIR}/common/xcursor.c
|
${BUILD_DIR}/common/xcursor.c
|
||||||
${SOURCE_DIR}/common/xembed.c
|
${BUILD_DIR}/common/xembed.c
|
||||||
${SOURCE_DIR}/common/xutil.c
|
${BUILD_DIR}/common/xutil.c
|
||||||
${SOURCE_DIR}/objects/button.c
|
${BUILD_DIR}/objects/button.c
|
||||||
${SOURCE_DIR}/objects/client.c
|
${BUILD_DIR}/objects/client.c
|
||||||
${SOURCE_DIR}/objects/drawable.c
|
${BUILD_DIR}/objects/drawable.c
|
||||||
${SOURCE_DIR}/objects/drawin.c
|
${BUILD_DIR}/objects/drawin.c
|
||||||
${SOURCE_DIR}/objects/key.c
|
${BUILD_DIR}/objects/key.c
|
||||||
${SOURCE_DIR}/objects/screen.c
|
${BUILD_DIR}/objects/screen.c
|
||||||
${SOURCE_DIR}/objects/tag.c
|
${BUILD_DIR}/objects/tag.c
|
||||||
${SOURCE_DIR}/objects/window.c)
|
${BUILD_DIR}/objects/window.c)
|
||||||
|
|
||||||
set(AWE_MAN_SRCS
|
set(AWE_MAN_SRCS
|
||||||
${SOURCE_DIR}/manpages/awesome.1.txt
|
${SOURCE_DIR}/manpages/awesome.1.txt
|
||||||
|
|
|
@ -277,31 +277,44 @@ set(AWESOME_THEMES_PATH ${AWESOME_DATA_PATH}/themes)
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
# {{{ Configure files
|
# {{{ Configure files
|
||||||
|
file(GLOB_RECURSE awesome_c_configure_files RELATIVE
|
||||||
|
${SOURCE_DIR}
|
||||||
|
${SOURCE_DIR}/*.c
|
||||||
|
${SOURCE_DIR}/*.h
|
||||||
|
${SOURCE_DIR}/*/*.c
|
||||||
|
${SOURCE_DIR}/*/*.h)
|
||||||
file(GLOB_RECURSE awesome_lua_configure_files RELATIVE
|
file(GLOB_RECURSE awesome_lua_configure_files RELATIVE
|
||||||
${SOURCE_DIR}
|
${SOURCE_DIR}
|
||||||
${SOURCE_DIR}/lib/*.lua.in
|
${SOURCE_DIR}/lib/*.lua
|
||||||
${SOURCE_DIR}/docs/capi/*.lua.in
|
${SOURCE_DIR}/themes/*/*.lua)
|
||||||
${SOURCE_DIR}/docs/*.md
|
|
||||||
${SOURCE_DIR}/themes/*/*.lua.in)
|
|
||||||
set(AWESOME_CONFIGURE_FILES
|
set(AWESOME_CONFIGURE_FILES
|
||||||
${awesome_lua_configure_files}
|
${awesome_lua_configure_files}
|
||||||
config.h.in
|
config.h
|
||||||
docs/config.ld.in
|
docs/config.ld
|
||||||
awesomerc.lua.in
|
awesomerc.lua
|
||||||
awesome-version-internal.h.in)
|
awesome-version-internal.h)
|
||||||
|
|
||||||
macro(a_configure_file file)
|
|
||||||
string(REGEX REPLACE ".in\$" "" outfile ${file})
|
|
||||||
message(STATUS "Configuring ${outfile}")
|
|
||||||
configure_file(${SOURCE_DIR}/${file}
|
|
||||||
${BUILD_DIR}/${outfile}
|
|
||||||
ESCAPE_QUOTE
|
|
||||||
@ONLY)
|
|
||||||
endmacro()
|
|
||||||
|
|
||||||
foreach(file ${AWESOME_CONFIGURE_FILES})
|
foreach(file ${AWESOME_CONFIGURE_FILES})
|
||||||
a_configure_file(${file})
|
configure_file(${SOURCE_DIR}/${file}
|
||||||
|
${BUILD_DIR}/${file}
|
||||||
|
ESCAPE_QUOTE
|
||||||
|
@ONLY)
|
||||||
endforeach()
|
endforeach()
|
||||||
#}}}
|
#}}}
|
||||||
|
|
||||||
|
# {{{ Copy additional files
|
||||||
|
file(GLOB_RECURSE awesome_md_docs RELATIVE
|
||||||
|
${SOURCE_DIR}
|
||||||
|
${SOURCE_DIR}/docs/*.md)
|
||||||
|
set(AWESOME_ADDITIONAL_FILES
|
||||||
|
${awesome_md_docs})
|
||||||
|
|
||||||
|
foreach(file ${AWESOME_ADDITIONAL_FILES})
|
||||||
|
configure_file(${SOURCE_DIR}/${file}
|
||||||
|
${BUILD_DIR}/${file}
|
||||||
|
COPYONLY)
|
||||||
|
endforeach()
|
||||||
|
#}}}
|
||||||
|
|
||||||
|
|
||||||
# vim: filetype=cmake:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80:foldmethod=marker
|
# vim: filetype=cmake:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80:foldmethod=marker
|
||||||
|
|
Loading…
Reference in New Issue