Skip to content
Permalink
Browse files

Add config.h to animview

  • Loading branch information...
TheCycoONE committed Jun 9, 2019
1 parent 3b94d7e commit 26f985707c45fe8770cb8c4f7d10996ce11cbace
Showing with 62 additions and 2 deletions.
  1. +11 −2 AnimView/CMakeLists.txt
  2. +1 −0 AnimView/app.cpp
  3. +2 −0 AnimView/app.h
  4. +41 −0 AnimView/config.h.in
  5. +1 −0 AnimView/frmMain.cpp
  6. +1 −0 AnimView/frmMain.h
  7. +1 −0 AnimView/frmSprites.cpp
  8. +2 −0 AnimView/frmSprites.h
  9. +1 −0 AnimView/th.cpp
  10. +1 −0 AnimView/th.h
@@ -1,23 +1,32 @@
# Project Declaration
project(AnimView)

configure_file(config.h.in config.h)

# Generate source files list
# Note: do not use generic includes (*.cpp and such) this will break things with cmake
set(animview_source_files
${CMAKE_CURRENT_BINARY_DIR}/config.h

${CMAKE_SOURCE_DIR}/common/rnc.h
${CMAKE_SOURCE_DIR}/common/rnc.cpp

app.cpp
frmMain.cpp
frmSprites.cpp
${CMAKE_SOURCE_DIR}/common/rnc.h
${CMAKE_SOURCE_DIR}/common/rnc.cpp
th.cpp

app.h
backdrop.h
frmMain.h
frmSprites.h
th.h

AnimView.rc
)

include_directories(${CMAKE_CURRENT_BINARY_DIR})

# Declaration of the executable
if(APPLE)
set(corsixth_icon_file ${CMAKE_SOURCE_DIR}/AnimView/Icon.icns)
@@ -20,6 +20,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

#include "config.h"
#include "app.h"
#include "frmMain.h"
#include "frmSprites.h"
@@ -21,6 +21,8 @@ SOFTWARE.
*/

#pragma once

#include "config.h"
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"

@@ -0,0 +1,41 @@
/*
Copyright (c) 2019 Stephen "TheCycoONE" Baker

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

#ifndef CORSIX_AV_CONFIG_H_
#define CORSIX_AV_CONFIG_H_

/** Standard includes **/
#include <cstddef>
#include <cstdint>

// We bring in the most common stddef and stdint types to avoid typing
using std::size_t;
using std::uint8_t;
using std::uint16_t;
using std::uint32_t;
using std::uint64_t;
using std::int8_t;
using std::int16_t;
using std::int32_t;
using std::int64_t;

#endif // CORSIX_AV_CONFIG_H_
@@ -20,6 +20,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

#include "config.h"
#include "frmMain.h"
#include <wx/radiobut.h>
#include <wx/sizer.h>
@@ -21,6 +21,7 @@ SOFTWARE.
*/

#pragma once
#include "config.h"
#include <wx/frame.h>
#include <wx/button.h>
#include <wx/spinctrl.h>
@@ -20,6 +20,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

#include "config.h"
#include "frmSprites.h"
#include <wx/sizer.h>
#include <wx/stattext.h>
@@ -21,6 +21,8 @@ SOFTWARE.
*/

#pragma once

#include "config.h"
#include <wx/bitmap.h>
#include <wx/frame.h>
#include <wx/button.h>
@@ -20,6 +20,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

#include "config.h"
#include "th.h"
#include "../common/rnc.h"
#include <wx/app.h>
@@ -35,6 +35,7 @@ SOFTWARE.
*/

#pragma once
#include "config.h"
#include <wx/string.h>
#include <wx/file.h>
#include <wx/image.h>

0 comments on commit 26f9857

Please sign in to comment.
You can’t perform that action at this time.