Skip to content

Commit

Permalink
rm unused build script
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperlarson committed Aug 5, 2024
1 parent 28d937e commit 6179033
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions conanfile.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import os

from conan import ConanFile
from conan.tools.meson import Meson
from conan.tools.files import copy, save
from conan.tools.files import copy


class Pkg(ConanFile):
Expand Down Expand Up @@ -47,21 +45,3 @@ def package_info(self):

def package_id(self):
self.info.clear()

def merge_headers(self, filepath1, filepath2, output_filename):
# Read files
with open(filepath1, 'r') as f1, open(filepath2, 'r') as f2:
content1 = f1.read()
content2 = f2.read()

# Create combined header content with include guards
guard_name = output_filename.upper().replace('.', '_') + '_HPP'
combined_content = f'#ifndef {guard_name}\n#define {guard_name}\n\n'
combined_content += content1 + '\n' + content2
combined_content += f'\n#endif // {guard_name}\n'

# Write to build directory
build_path = os.path.join(self.build_folder, output_filename)
save(self, build_path, combined_content)
self.output.info(f"Merged header file created at: {build_path}")

0 comments on commit 6179033

Please sign in to comment.