add the rest of the hypr tools
This commit is contained in:
67
tasks/src/hyprland_qt_support.yml
Normal file
67
tasks/src/hyprland_qt_support.yml
Normal file
@@ -0,0 +1,67 @@
|
||||
- name: Remove existing install
|
||||
when:
|
||||
- hyprland_clean
|
||||
become: "{{ ext_become }}"
|
||||
loop: "{{ hyprland_qt_support.installed_files }}"
|
||||
loop_control:
|
||||
loop_var: file
|
||||
ansible.builtin.file:
|
||||
state: absent
|
||||
path: "{{ hyprland.prefix }}/{{ file }}"
|
||||
|
||||
- name: Check if hyprland_qt_support is installed
|
||||
register: stat_hyprland_qt_support_bin
|
||||
ansible.builtin.stat:
|
||||
path: "{{ hyprland.prefix }}/bin/hyprland_qt_support"
|
||||
|
||||
- name: Build and install hyprland_qt_support
|
||||
when:
|
||||
- not stat_hyprland_qt_support_bin.stat.exists
|
||||
block:
|
||||
- name: Clone git repository
|
||||
ansible.builtin.git:
|
||||
depth: 1
|
||||
dest: "{{ hyprland_qt_support.git_path }}"
|
||||
recursive: true
|
||||
repo: "{{ hyprland_qt_support.repo }}"
|
||||
version: "{{ hyprland_qt_support.vers }}"
|
||||
|
||||
- name: Configure hyprland_qt_support
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hyprland_qt_support.git_path }}/build"
|
||||
chdir: "{{ hyprland_qt_support.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --no-warn-unused-cli
|
||||
- -DCMAKE_BUILD_TYPE:STRING=Release
|
||||
- -DCMAKE_INSTALL_PREFIX:PATH={{ hyprland.prefix }}
|
||||
- -DINSTALL_QML_PREFIX=/lib/qt6/qml
|
||||
- -S
|
||||
- .
|
||||
- -B
|
||||
- ./build
|
||||
|
||||
- name: Build hyprland_qt_support
|
||||
ansible.builtin.command:
|
||||
creates: "{{ hyprland_qt_support.git_path }}/build/hyprland_qt_support"
|
||||
chdir: "{{ hyprland_qt_support.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --build
|
||||
- ./build
|
||||
- --config
|
||||
- Release
|
||||
- --target
|
||||
- all
|
||||
- -j
|
||||
- "{{ ansible_processor_nproc|int }}"
|
||||
|
||||
- name: Install hyprland_qt_support
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
creates: "{{ path.bin }}/hyprland_qt_support"
|
||||
chdir: "{{ hyprland_qt_support.git_path }}"
|
||||
argv:
|
||||
- cmake
|
||||
- --install
|
||||
- ./build
|
||||
Reference in New Issue
Block a user