Skip to content

Commit

Permalink
clean up deprecated build.json
Browse files Browse the repository at this point in the history
  • Loading branch information
dromer committed Nov 13, 2023
1 parent 4f81017 commit 7fdfc1f
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 151 deletions.
Empty file.
85 changes: 0 additions & 85 deletions hvcc/generators/buildjson/buildjson.py

This file was deleted.

5 changes: 0 additions & 5 deletions hvcc/generators/c2daisy/c2daisy.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

from typing import Dict, Optional

from ..buildjson import buildjson
from ..copyright import copyright_manager
from . import parameters

Expand Down Expand Up @@ -125,10 +124,6 @@ def compile(

# ======================================================================================

buildjson.generate_json(
out_dir,
linux_x64_args=["-j"])

return {
"stage": "c2daisy",
"notifs": {
Expand Down
26 changes: 2 additions & 24 deletions hvcc/generators/c2owl/c2owl.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
import jinja2
import json
from typing import Dict, List, Optional
from ..buildjson import buildjson
from ..copyright import copyright_manager

import hvcc.core.hv2ir.HeavyLangObject as HeavyLangObject
from ..copyright import copyright_manager



heavy_hash = HeavyLangObject.HeavyLangObject.get_hash
Expand Down Expand Up @@ -121,29 +121,7 @@ def compile(
jdata=jdata,
copyright=copyright_c))

# generate list of Heavy source files
# files = os.listdir(out_dir)

# ======================================================================================
# Linux
#
# linux_path = os.path.join(out_dir, "linux")
# os.makedirs(linux_path)

# with open(os.path.join(out_dir, "Makefile"), "w") as f:
# f.write(env.get_template("Makefile").render(
# name=patch_name,
# class_name=f"HeavyOWL_{patch_name}"))

buildjson.generate_json(
out_dir,
linux_x64_args=["-j"])
# macos_x64_args=["-project", "{0}.xcodeproj".format(patch_name), "-arch",
# "x86_64", "-alltargets"],
# win_x64_args=["/property:Configuration=Release", "/property:Platform=x64",
# "/t:Rebuild", "{0}.sln".format(patch_name), "/m"],
# win_x86_args=["/property:Configuration=Release", "/property:Platform=x86",
# "/t:Rebuild", "{0}.sln".format(patch_name), "/m"])

return {
"stage": "c2owl",
Expand Down
12 changes: 0 additions & 12 deletions hvcc/generators/c2unity/c2unity.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
from typing import Dict, Optional

from ..copyright import copyright_manager
from ..buildjson import buildjson
from ..filters import filter_string_cap, filter_templates, filter_xcode_build, filter_xcode_fileref


Expand Down Expand Up @@ -100,17 +99,6 @@ def compile(
compile_files=os.listdir(src_out_dir),
copyright=copyright))

buildjson.generate_json(
out_dir,
android_armv7a_args=["APP_ABI=armeabi-v7a", "-j"],
linux_x64_args=["-j"],
macos_x64_args=["-project", f"Hv_{patch_name}_Unity.xcodeproj",
"-arch", "x86_64", "-alltargets"],
win_x64_args=["/property:Configuration=Release", "/property:Platform=x64",
"/t:Rebuild", f"Hv_{patch_name}_Unity.sln", "/m"],
win_x86_args=["/property:Configuration=Release", "/property:Platform=x86",
"/t:Rebuild", f"Hv_{patch_name}_Unity.sln", "/m"])

return {
"stage": "c2unity",
"notifs": {
Expand Down
25 changes: 0 additions & 25 deletions hvcc/generators/c2wwise/c2wwise.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import jinja2
from typing import Dict, Optional

from ..buildjson import buildjson
from ..copyright import copyright_manager
from ..filters import filter_plugin_id, filter_xcode_build, filter_xcode_fileref

Expand Down Expand Up @@ -180,30 +179,6 @@ def compile(
files=files,
wwise_version=wwise_sdk_version))

proj_name = f"Hv_{patch_name}_Wwise{plugin_type}Plugin"

buildjson.generate_json(
out_dir,
ios_armv7a_args=[
"-arch", "armv7s",
"-target", f"{proj_name}_iOS",
"-project", f"{proj_name}.xcodeproj"],
linux_x64_args=["-j"],
macos_x64_args=[
"-arch", "x86_64",
"-target", f"{proj_name}",
"-project", f"{proj_name}.xcodeproj"],
win_x64_args=[
"/property:Configuration=Release",
"/property:Platform=x64",
"/t:Rebuild", "/m",
f"{proj_name}.sln"],
win_x86_args=[
"/property:Configuration=Release",
"/property:Platform=x86",
"/t:Rebuild", "/m",
f"{proj_name}.sln"])

return {
"stage": "c2wwise",
"notifs": {
Expand Down

0 comments on commit 7fdfc1f

Please sign in to comment.