standarizing cmake builds

This commit is contained in:
Matthew Stobbs
2025-03-31 21:17:22 -06:00
parent 4da72c2539
commit 40adb16987
18 changed files with 242 additions and 216 deletions

View File

@@ -0,0 +1,10 @@
# vim: set filetype=yaml.ansible :
---
- name: Remove file list
become: true
loop: "{{ file_list }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ file }}"

View File

@@ -2,18 +2,18 @@
---
- name: Configure {{ repo.git_path }}
ansible.builtin.command:
creates: "{{ repo.git_path }}/build"
chdir: "{{ repo.git_path }}"
argv: "{{ repo.build.configure }}"
creates: "{{ src_path }}/build"
chdir: "{{ src_path }}"
argv: "{{ configure }}"
- name: Build {{ repo.git_path }}
ansible.builtin.command:
creates: "{{ repo.git_path }}/{{ repo.build.creates }}"
chdir: "{{ repo.git_path }}"
argv: "{{ repo.build.build }}"
creates: "{{ build_creates }}"
chdir: "{{ src_path }}"
argv: "{{ build }}"
- name: Install {{ repo.git_push }}
ansible.buitlin.command:
creates: "{{ repo.prefix }}/{{ repo.build.installs }}"
chdir: "{{ repo.git_path }}"
argv: "{{ repo.build.install }}"
ansible.builtin.command:
creates: "{{ install_creates }}"
chdir: "{{ src_path }}"
argv: "{{ install }}"

View File

@@ -1,7 +1,7 @@
- name: Clone git repository {{ repo.repo }}
- name: Clone git repository {{ src_pkg }}
ansible.builtin.git:
depth: 1
force: true
dest: "{{ repo.git_path }}"
repo: "{{ repo.repo }}"
version: "{{ repo.version | default(omit) }}"
dest: "{{ src_path }}"
repo: "{{ src_gitrepo }}"
version: "{{ src_version | default(omit) }}"