Commit f0ef899e authored by nanahira's avatar nanahira

premake5 changes

parent 7f62de33
...@@ -60,42 +60,29 @@ ...@@ -60,42 +60,29 @@
track_submodules: true track_submodules: true
- name: premake5 - name: premake5
unarchive: unarchive:
src: https://cdn01.moecube.com/nanahira/premake-5.0.0-alpha14-linux.tar.gz src: https://cdn01.moecube.com/ygopro-build-materials/premake-5.0.0-beta1-linux.tar.gz
dest: '{{home_path}}/ygopro/' dest: '{{home_path}}/ygopro/'
creates: '{{home_path}}/ygopro/premake5' creates: '{{home_path}}/ygopro/premake5'
remote_src: true remote_src: true
- name: download lua - name: download lua
unarchive: unarchive:
src: https://cdn01.moecube.com/nanahira/lua-5.3.6.tar.gz src: https://cdn01.moecube.com/ygopro-build-materials/lua-5.3.6.tar.gz
dest: /tmp/ dest: /tmp/
creates: /tmp/lua-5.3.6 creates: /tmp/lua-5.3.6
remote_src: true remote_src: true
when: ansible_os_family != 'Debian' when: ansible_os_family != 'Debian'
- name: move lua - name: move lua
shell: 'cp -rf /tmp/lua-5.3.6/src {{home_path}}/ygopro/lua ; cp -rf {{home_path}}/ygopro/premake/lua/premake4.lua {{home_path}}/ygopro/lua/' shell: 'cp -rf /tmp/lua-5.3.6 {{home_path}}/ygopro/lua ; cp -rf {{home_path}}/ygopro/premake/lua/premake5.lua {{home_path}}/ygopro/lua/'
args: args:
creates: '{{home_path}}/ygopro/lua/premake4.lua' creates: '{{home_path}}/ygopro/lua/premake4.lua'
when: ansible_os_family != 'Debian' when: ansible_os_family != 'Debian'
- name: debian params
set_fact:
premake_params: '{{premake_params}} --lua-deb'
- name: premake5 gmake - name: premake5 gmake
shell: ./premake5 gmake shell: './premake5 gmake {{premake_params}}'
args: args:
chdir: '{{home_path}}/ygopro' chdir: '{{home_path}}/ygopro'
when: not no_lua_safe and ansible_os_family == 'Debian'
- name: premake5 gmake unsafe
shell: env YGOPRO_NO_LUA_SAFE=1 ./premake5 gmake
args:
chdir: '{{home_path}}/ygopro'
when: no_lua_safe and ansible_os_family == 'Debian'
- name: premake5 gmake in-built lua
shell: env YGOPRO_BUILD_LUA=1 ./premake5 gmake
args:
chdir: '{{home_path}}/ygopro'
when: not no_lua_safe and ansible_os_family != 'Debian'
- name: premake5 gmake in-built lua unsafe
shell: env YGOPRO_BUILD_LUA=1 YGOPRO_NO_LUA_SAFE=1 ./premake5 gmake
args:
chdir: '{{home_path}}/ygopro'
when: no_lua_safe and ansible_os_family != 'Debian'
- name: build - name: build
make: make:
chdir: '{{home_path}}/ygopro/build' chdir: '{{home_path}}/ygopro/build'
......
...@@ -69,26 +69,13 @@ ...@@ -69,26 +69,13 @@
force: true force: true
accept_hostkey: true accept_hostkey: true
track_submodules: true track_submodules: true
- name: debian params
set_fact:
premake_params: '{{premake_params}} --lua-deb'
- name: premake5 gmake - name: premake5 gmake
shell: ./premake5 gmake shell: './premake5 gmake {{premake_params}}'
args: args:
chdir: '{{home_path}}/ygopro-new' chdir: '{{home_path}}/ygopro-new'
when: not no_lua_safe and ansible_os_family == 'Debian'
- name: premake5 gmake unsafe
shell: env YGOPRO_NO_LUA_SAFE=1 ./premake5 gmake
args:
chdir: '{{home_path}}/ygopro-new'
when: no_lua_safe and ansible_os_family == 'Debian'
- name: premake5 gmake in-built lua
shell: env YGOPRO_BUILD_LUA=1 ./premake5 gmake
args:
chdir: '{{home_path}}/ygopro-new'
when: not no_lua_safe and ansible_os_family != 'Debian'
- name: premake5 gmake in-built lua unsafe
shell: env YGOPRO_BUILD_LUA=1 YGOPRO_NO_LUA_SAFE=1 ./premake5 gmake
args:
chdir: '{{home_path}}/ygopro-new'
when: no_lua_safe and ansible_os_family != 'Debian'
- name: build - name: build
make: make:
chdir: '{{home_path}}/ygopro-new/build' chdir: '{{home_path}}/ygopro-new/build'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment