Skip to content

Commit

Permalink
src: Remove hardcoded version.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alec Leamas authored and Rasbats committed Jan 5, 2021
1 parent a80a360 commit df22cd9
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
4 changes: 0 additions & 4 deletions VERSION.cmake

This file was deleted.

9 changes: 9 additions & 0 deletions config.h.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#define API_VERSION "@API_VERSION@"

#define PLUGIN_VERSION_MAJOR @PROJECT_VERSION_MAJOR@
#define PLUGIN_VERSION_MINOR @PROJECT_VERSION_MINOR@
#define PLUGIN_VERSION_PATCH @PROJECT_VERSION_PATCH@
#define PLUGIN_VERSION_TWEAK @PROJECT_VERSION_TWEAK@

#define PLUGIN_API_NAME "@PLUGIN_API_NAME@"

1 change: 1 addition & 0 deletions src/AboutDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <cmath>
#include <time.h>

#include "config.h"
#include "AboutDialog.h"
#include "PhotoLayer_pi.h"

Expand Down
1 change: 1 addition & 0 deletions src/PhotoLayer_pi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "wx/wx.h"
#endif //precompiled headers

#include "config.h"
#include "PhotoLayer_pi.h"
#include "PhotoLayerImage.h"
#include "PhotoLayer.h"
Expand Down
1 change: 1 addition & 0 deletions src/wximgkap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

#include <time.h> /* for date in kap */

#include "config.h"
#include "PhotoLayer_pi.h"
#include "PhotoLayerImage.h"
#include "wximgkap.h"
Expand Down

0 comments on commit df22cd9

Please sign in to comment.