Skip to content

Commit 76cab21

Browse files
committed
ofGen faster compile
1 parent 0ac5cab commit 76cab21

File tree

5 files changed

+12
-93
lines changed

5 files changed

+12
-93
lines changed

ofGen/src/leftovers.txt

Lines changed: 0 additions & 87 deletions
This file was deleted.

ofGen/src/ofTemplateMacos.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
#include "ofTemplateMacos.h"
22
#include "addons.h"
3+
#include "uuidxx.h"
4+
5+
#include <nlohmann/json.hpp>
6+
using nlohmann::json;
7+
38
// #include <fstream>
49
// #include <chrono>
510
// #include <fmt/chrono.h> // fmt’s chrono integration
11+
std::string generateUUID(const std::string & input) {
12+
return uuidxx::uuid::Generate().ToString(false);
13+
}
614

715
std::string ofTemplateMacos::addFile(const fs::path & path, const fs::path & folder, const fileProperties & fp) {
816
std::string UUID { "" };

ofGen/src/ofTemplateVSCode.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#include "templates.h"
22
#include <fstream>
33

4+
#include <nlohmann/json.hpp>
5+
using nlohmann::json;
6+
47
struct ofTemplateVSCode : public ofTemplate {
58
public:
69
ofTemplateVSCode() {

ofGen/src/templates.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,12 @@
22
// #include "ofTemplateVSCode.h"
33
#include "addons.h"
44
#include "utils.h"
5-
#include "uuidxx.h"
65
// #include <cmath>
76
#include <fstream> //in utils
87
#include <nlohmann/json.hpp>
98
using nlohmann::json;
109

11-
std::string generateUUID(const std::string & input) {
12-
return uuidxx::uuid::Generate().ToString(false);
13-
}
10+
1411

1512
void copyTemplateFile::info() {
1613
// std::cout << std::endl;

ofGen/src/templates.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ using std::string;
77
using std::vector;
88
struct ofAddon;
99

10-
#include <nlohmann/json.hpp>
11-
using nlohmann::json;
1210

1311
std::string generateUUID(const std::string & input);
1412

0 commit comments

Comments
 (0)