mirror of
https://github.com/ysoftdevs/gradle-training.git
synced 2026-11-18 06:48:25 +01:00
add c language example
This commit is contained in:
1 parent
704f165b38
commit
1f87dd7c8f
3 files changed
+107
-2
No files matched your search
@@ -0,0 +1,17 @@
|
||||
apply plugin: 'c'
|
||||
|
||||
sources {
|
||||
main {
|
||||
c {
|
||||
source {
|
||||
// Include just source, avoid including *.swp and other helper files
|
||||
include "**/*.c"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
executables {
|
||||
main {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
printf("Making the MFPs think\n");
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user