Commit f0ef899e authored by nanahira's avatar nanahira

premake5 changes

parent 7f62de33
......@@ -60,42 +60,29 @@
track_submodules: true
- name: premake5
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/'
creates: '{{home_path}}/ygopro/premake5'
remote_src: true
- name: download lua
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/
creates: /tmp/lua-5.3.6
remote_src: true
when: ansible_os_family != 'Debian'
- 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:
creates: '{{home_path}}/ygopro/lua/premake4.lua'
when: ansible_os_family != 'Debian'
- name: debian params
set_fact:
premake_params: '{{premake_params}} --lua-deb'
- name: premake5 gmake
shell: ./premake5 gmake
shell: './premake5 gmake {{premake_params}}'
args:
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
make:
chdir: '{{home_path}}/ygopro/build'
......
......@@ -69,26 +69,13 @@
force: true
accept_hostkey: true
track_submodules: true
- name: debian params
set_fact:
premake_params: '{{premake_params}} --lua-deb'
- name: premake5 gmake
shell: ./premake5 gmake
shell: './premake5 gmake {{premake_params}}'
args:
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
make:
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