Skip to content

Commit

Permalink
refactor: xmake migration
Browse files Browse the repository at this point in the history
  • Loading branch information
shad0wshayd3 committed Nov 21, 2024
1 parent 6b22064 commit 9ac64b1
Show file tree
Hide file tree
Showing 30 changed files with 525 additions and 1,312 deletions.
File renamed without changes.
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

18 changes: 7 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,26 @@ name: CI
on:
push:
paths:
- "Plugin/**"
- "src/**"
workflow_dispatch:

jobs:
run-build:
runs-on: windows-latest
steps:
- name: Setup xmake
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest

- name: Checkout
uses: actions/checkout@v4

- name: Setup Dependencies
run: |
git submodule update --init --recursive;
vcpkg integrate install
- name: Build
run: |
Remove-Item build -Recurse -Force -ErrorAction:SilentlyContinue -Confirm:$False | Out-Null;
cmake -B build -S Plugin --preset=build-release-msvc-msvc -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake;
cmake --build build
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: Release
path: build/Release
retention-days: 30
xmake build -y
14 changes: 10 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
[Bb]uild/
# dot folders
.cache
.vs/
.vscode/
*.zip
*.timestamp
deploy-*.ps1
.xmake/

# folders
build/
vs*/

# files
*.zip
6 changes: 0 additions & 6 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +0,0 @@
[submodule "extern/CommonLibF4"]
path = extern/CommonLibF4
url = https://github.com/shad0wshayd3/CommonLibF4.git
[submodule "extern/DKUtil"]
path = extern/DKUtil
url = https://github.com/shad0wshayd3/DKUtil.git
41 changes: 31 additions & 10 deletions EXCEPTIONS
Original file line number Diff line number Diff line change
@@ -1,15 +1,36 @@
This Program is intended to be used with and modify existing code (the "Modded Code") and to build a robust modding community with open source principles. The purpose of this exception is to address issues when an open source modding community interacts with potentially proprietary code. In addition, the modding community often uses libraries (the "Modding Libraries") under licenses that may be incompatible with the GPL ("Modding Library Licenses").
This Program is intended to be used with and to modify existing code
(the "Modded Code"). The purpose of this exception is to address issues
when an open source modding community interacts with potentially
proprietary code. In addition, the modding community often uses libraries
(the "Modding Libraries") under licenses that may be incompatible with
the GPL ("Modding Library Licenses").

===
Modding Exception

Modding Exception
As an exception, the author gives You the additional right to link the
code of this Program with the existing code that this Program is
intended to be used with or modify and to distribute linked combinations
including the two, subject to the limitations in this paragraph. Modded
Code permitted under this exception may link to the code of this Program
without causing the Modded Code and portion of the combined work
corresponding to the Modded Code to be covered by the GNU General Public
License. You must obey the GNU General Public License in all respects for
all of the Program code and other code used in conjunction with the
Program except the Modded Code covered by this exception. If you modify
this file, you may extend this exception to your version of the file, but
you are not obligated to do so. If you do not wish to provide this
exception without modification, you must delete this exception statement
from your version and license this file solely under the GPL without
exception.

In addition, as a special exception, the authors gives You the additional right to link the code of this Program with the existing code that this Program is intended to be used with or modify and to distribute linked combinations including the two, subject to the limitations in this paragraph. Modded Code permitted under this exception may link to the code of this Program without causing the Modded Code and portion of the combined work corresponding to the Modded Code to be covered by the GNU General Public License. You must obey the GNU General Public License in all respects for all of the Program code and other code used in conjunction with the Program except the Modded Code covered by this exception. If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to provide this exception without modification, you must delete this exception statement from your version and license this file solely under the GPL without exception.
GPL-3.0 Linking Exception (with Corresponding Source)

===
Additional permission under GNU GPL version 3 section 7

GPL-3.0 Linking Exception (with Corresponding Source)

Additional permission under GNU GPL version 3 section 7

If you modify this Program, or any covered work, by linking or combining it with Modding Libraries (or a modified version thereof), containing parts covered by the terms of Modding Library Licenses, the licensors of this Program grant you additional permission to convey the resulting work. Corresponding Source for a non-source form of such a combination shall include the source code for the parts of Modding Libraries used as well as that of the covered work.
If you modify this Program, or any covered work, by linking or combining
it with Modding Libraries (or a modified version thereof), containing
parts covered by the terms of Modding Library Licenses, the licensors of
this Program grant you additional permission to convey the resulting work.
Corresponding Source for a non-source form of such a combination shall
include the source code for the parts of Modding Libraries used as well as
that of the covered work.
2 changes: 1 addition & 1 deletion COPYING → LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -671,4 +671,4 @@ into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.
<https://www.gnu.org/licenses/why-not-lgpl.html>.
263 changes: 0 additions & 263 deletions Plugin/!update.ps1

This file was deleted.

Loading

0 comments on commit 9ac64b1

Please sign in to comment.