Skip to content

Commit

Permalink
try always building clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Aug 18, 2024
1 parent 9f4cc70 commit f54dc50
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions extension/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,22 @@

//! ACE3 Extension for quick maths and OS APIs

use arma_rs::{arma, Extension, Group};
use arma_rs::{arma, Extension};

mod artillery;
pub mod ballistics;
mod break_line;
mod clipboard;
mod common;
mod fcs;

#[cfg(feature = "clipboard")]
mod clipboard;

#[arma]
fn init() -> Extension {
Extension::build()
.version(env!("GIT_HASH").to_string())
.group("artillery", artillery::group())
.group("ballistics", ballistics::group())
.group(
"clipboard",
if cfg!(feature = "clipboard") {
clipboard::group()
} else {
Group::new()
},
)
.group("clipboard", clipboard::group())
.command("break_line", break_line::break_line)
.command("fcs", fcs::get_solution)
.command("version", || env!("GIT_HASH"))
Expand Down

0 comments on commit f54dc50

Please sign in to comment.