MORE BAZEL. VS Code only, by the way
This commit is contained in:
parent
e2d648b5fa
commit
3f837d7052
@ -1,17 +0,0 @@
|
||||
directories:
|
||||
# Add the directories you want added as source here
|
||||
# By default, we've added your entire workspace ('.')
|
||||
.
|
||||
|
||||
# Automatically includes all relevant targets under the 'directories' above
|
||||
derive_targets_from_directories: true
|
||||
|
||||
targets:
|
||||
# If source code isn't resolving, add additional targets that compile it here
|
||||
|
||||
additional_languages:
|
||||
# Uncomment any additional languages you want supported
|
||||
# dart
|
||||
# javascript
|
||||
# python
|
||||
# typescript
|
@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module external.system.id="Blaze" type="BLAZE_CPP_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$/../..">
|
||||
<excludeFolder url="file://$MODULE_DIR$/.." />
|
||||
<excludeFolder url="file://$MODULE_DIR$/../../.idea" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
@ -1,16 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module external.system.id="Blaze" type="BLAZE_CPP_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$/../../..">
|
||||
<sourceFolder url="file://$MODULE_DIR$/../../.." isTestSource="false" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/../.." />
|
||||
<excludeFolder url="file://$MODULE_DIR$/../../../bazel-CrocParty" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/../../../bazel-bin" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/../../../bazel-genfiles" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/../../../bazel-out" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/../../../bazel-testlogs" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
8
.clwb/.idea/.gitignore
generated
vendored
8
.clwb/.idea/.gitignore
generated
vendored
@ -1,8 +0,0 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
1
.clwb/.idea/.name
generated
1
.clwb/.idea/.name
generated
@ -1 +0,0 @@
|
||||
CrocParty
|
9
.clwb/.idea/modules.xml
generated
9
.clwb/.idea/modules.xml
generated
@ -1,9 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.blaze/modules/.project-data-dir.iml" filepath="$PROJECT_DIR$/.blaze/modules/.project-data-dir.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/.blaze/modules/.workspace.iml" filepath="$PROJECT_DIR$/.blaze/modules/.workspace.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
25
.clwb/.idea/runConfigurations.xml
generated
25
.clwb/.idea/runConfigurations.xml
generated
@ -1,25 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="RunConfigurationProducerService">
|
||||
<option name="ignoredProducers">
|
||||
<set>
|
||||
<option value="com.intellij.javascript.jest.JestRunConfigurationProducer" />
|
||||
<option value="com.intellij.javascript.protractor.ProtractorRunConfigurationProducer" />
|
||||
<option value="com.intellij.lang.javascript.buildTools.grunt.rc.GruntRunConfigurationProducer" />
|
||||
<option value="com.intellij.lang.javascript.buildTools.gulp.rc.GulpRunConfigurationProducer" />
|
||||
<option value="com.intellij.lang.javascript.buildTools.npm.rc.NpmRunConfigurationProducer" />
|
||||
<option value="com.jetbrains.cidr.cpp.execution.CMakeTargetRunConfigurationProducer" />
|
||||
<option value="com.jetbrains.cidr.cpp.execution.debugger.CMakeRunConfigurationProducer" />
|
||||
<option value="com.jetbrains.cidr.cpp.execution.testing.boost.CMakeBoostTestRunConfigurationProducer" />
|
||||
<option value="com.jetbrains.cidr.cpp.execution.testing.google.CMakeGoogleTestRunConfigurationProducer" />
|
||||
<option value="com.jetbrains.cidr.cpp.execution.testing.tcatch.CMakeCatchTestRunConfigurationProducer" />
|
||||
<option value="com.jetbrains.cidr.cpp.runfile.CppFileTargetRunConfigurationProducer" />
|
||||
<option value="com.jetbrains.python.run.PythonRunConfigurationProducer" />
|
||||
<option value="com.jetbrains.python.testing.PyTestsConfigurationProducer" />
|
||||
<option value="com.jetbrains.python.testing.PythonTestLegacyConfigurationProducer" />
|
||||
<option value="com.jetbrains.python.testing.doctest.PythonDocTestConfigurationProducer" />
|
||||
<option value="com.jetbrains.python.testing.tox.PyToxConfigurationProducer" />
|
||||
</set>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
7
.clwb/.idea/vcs.xml
generated
7
.clwb/.idea/vcs.xml
generated
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
||||
</component>
|
||||
</project>
|
5
.vscode/settings.json
vendored
Normal file
5
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"files.associations": {
|
||||
"stdbool.h": "c"
|
||||
}
|
||||
}
|
2
MODULE.bazel.lock
generated
2
MODULE.bazel.lock
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"lockFileVersion": 3,
|
||||
"moduleFileHash": "0e3e315145ac7ee7a4e0ac825e1c5e03c068ec1254dd42c3caaecb27e921dc4d",
|
||||
"moduleFileHash": "26410c1d586b610379d5f0071d4dd5919188e0ec421ce4608d07c972ac622678",
|
||||
"flags": {
|
||||
"cmdRegistries": [
|
||||
"https://bcr.bazel.build/"
|
||||
|
6
game/BUILD
Normal file
6
game/BUILD
Normal file
@ -0,0 +1,6 @@
|
||||
cc_library(
|
||||
name = "game",
|
||||
srcs = glob(["*.c"]),
|
||||
hdrs = glob(["*.h"]),
|
||||
visibility = ["//sdl_host:__pkg__"]
|
||||
)
|
@ -1,8 +0,0 @@
|
||||
cc_binary(
|
||||
name = "game",
|
||||
srcs = glob([
|
||||
"*.c",
|
||||
"*.h",
|
||||
]),
|
||||
deps = ["//sdl"],
|
||||
)
|
@ -1,9 +0,0 @@
|
||||
#include "sdl_host.h"
|
||||
|
||||
int main() {
|
||||
// PYREX NOTE: You could, if you wanted, define another host with the same interface as sdl_host
|
||||
// That would be pretty cool, right?
|
||||
//
|
||||
// (Such a host might be smaller and more platform-specific.)
|
||||
return sdl_host_main();
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
#ifndef CROCPARTY_SDL_HOST_H
|
||||
#define CROCPARTY_SDL_HOST_H
|
||||
|
||||
int sdl_host_main(void);
|
||||
|
||||
#endif //CROCPARTY_SDL_HOST_H
|
11
sdl/BUILD
11
sdl/BUILD
@ -1,10 +1,7 @@
|
||||
cc_library(
|
||||
cc_import(
|
||||
name = "sdl",
|
||||
srcs = [
|
||||
"x64_windows/SDL2.dll",
|
||||
"x64_windows/SDL2.lib",
|
||||
"x64_windows/SDL2main.lib",
|
||||
],
|
||||
hdrs = glob(["include/*.h"]),
|
||||
visibility = ["//main:__pkg__"],
|
||||
interface_library = "x64_windows/SDL2.lib",
|
||||
shared_library = "x64_windows/SDL2.dll",
|
||||
visibility = ["//sdl_host:__pkg__"],
|
||||
)
|
||||
|
5
sdl_host/BUILD
Normal file
5
sdl_host/BUILD
Normal file
@ -0,0 +1,5 @@
|
||||
cc_binary(
|
||||
name = "sdl_host",
|
||||
srcs = glob(["*.c", "*.h"]),
|
||||
deps = ["//game:game", "//sdl:sdl"],
|
||||
)
|
@ -1,10 +1,11 @@
|
||||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "sdl_host.h"
|
||||
// don't use sdl's redefinition of main
|
||||
#define SDL_MAIN_HANDLED
|
||||
#include "sdl/include/SDL.h"
|
||||
#include "game.h"
|
||||
#include "device.h"
|
||||
#include "game/game.h"
|
||||
#include "game/device.h"
|
||||
|
||||
void sdl_host_suggest_dimensions(uint32_t* window_w, uint32_t* window_h);
|
||||
void sdl_host_loop();
|
||||
@ -13,7 +14,7 @@ SDL_Window* sdl_host_window;
|
||||
SDL_Renderer* sdl_host_renderer;
|
||||
SDL_Texture* sdl_host_target;
|
||||
|
||||
int sdl_host_main(void) {
|
||||
int main(int argc, char** argv) {
|
||||
int result = 0;
|
||||
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER)) {
|
||||
printf("could not initialize SDL! sdl error: %s\n", SDL_GetError());
|
Loading…
Reference in New Issue
Block a user