cppmake 31__tar.gz → 33__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cppmake
3
- Version: 31
3
+ Version: 33
4
4
  Summary: A modern C++ builder based on C++20 Modules.
5
5
  Author-email: anonymouspc <shyeyian@petalmail.com>
6
6
  License-Expression: MIT
@@ -1,18 +1,29 @@
1
1
  from cppmakelib import *
2
2
 
3
3
  def main():
4
- if not exist_dir("package/std"):
4
+ if not exist_dir("package/std"): # install std as default
5
5
  create_dir("package/std/module")
6
- open("package/std/cppmake.py", 'w').write(default_std_cppmake)
7
- open("package/std/module/std.cpp", 'w').write(default_std_module)
6
+ open ("package/std/module/std.cpp", 'w').write(default_std_module)
7
+ open ("package/std/cppmake.py", 'w').write(default_std_cppmake)
8
8
  Package("std").build()
9
9
 
10
10
  if Package("main").cppmake is not None:
11
11
  getattr(Package("main").cppmake, config.target)()
12
- else: # default
12
+ else: # compile Source("main") as default
13
13
  Source("main").compile()
14
14
 
15
15
 
16
+
17
+
18
+ default_std_module = \
19
+ """
20
+ module;
21
+ #include <include>
22
+
23
+ export module std;
24
+ #include <export>
25
+ """
26
+
16
27
  default_std_cppmake = \
17
28
  """
18
29
  from cppmakelib import *
@@ -33,13 +44,4 @@ def build():
33
44
  writer.write(content[0].replace("module;", ""))
34
45
  with open(f"{package.include_dir}/export", 'w') as writer:
35
46
  writer.write(content[1])
36
- """
37
-
38
- default_std_module = \
39
- """
40
- module;
41
- #include <include>
42
-
43
- export module std;
44
- #include <export>
45
47
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cppmake
3
- Version: 31
3
+ Version: 33
4
4
  Summary: A modern C++ builder based on C++20 Modules.
5
5
  Author-email: anonymouspc <shyeyian@petalmail.com>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "cppmake"
7
- version = "31"
7
+ version = "33"
8
8
  description = "A modern C++ builder based on C++20 Modules."
9
9
  authors = [{name = "anonymouspc", email = "shyeyian@petalmail.com"}]
10
10
  readme = "readme.md"
File without changes
File without changes
File without changes