Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
vs49688 committed Aug 24, 2024
1 parent d7d1037 commit ddd9506
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ endif ()
option(BRENDER_BUILD_DRIVERS "Build Drivers" ON)
option(BRENDER_BUILD_SOFT "Build Software Renderer" OFF)

if (BRENDER_BUILD_SOFT AND (NOT WIN32 OR NOT MSVC OR (NOT CMAKE_GENERATOR_PLATFORM STREQUAL "Win32")))
message(FATAL_ERROR "Can only build the software renderer on 32-bit Windows using MSVC.")
endif ()
#if (BRENDER_BUILD_SOFT AND (NOT WIN32 OR NOT MSVC OR (NOT CMAKE_GENERATOR_PLATFORM STREQUAL "Win32")))
# message(FATAL_ERROR "Can only build the software renderer on 32-bit Windows using MSVC.")
#endif ()

add_subdirectory(core)

Expand Down
2 changes: 1 addition & 1 deletion contrib/mkdrv.pl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ sub run_h2inc {
my (undef, $indir, $infile) = File::Spec->splitpath($inpath);

my @params = (
$h2inc, "-nologo", '-G3', '-Zp4', '-w', '-c', '-WIN32',
'wine', $h2inc, "-nologo", '-G3', '-Zp4', '-w', '-c', '-WIN32',
'-D_WIN32',
'-D__VISUALC', '-D__H2INC__', '-D_NO_PROTOTYPES',
"-I${incpath}", "-Fa${procpath}", $infile
Expand Down
2 changes: 1 addition & 1 deletion drivers/pentprim/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ endif()



set_source_files_properties(${ASM_FILES} PROPERTIES COMPILE_OPTIONS "-safeseh")
set_source_files_properties(${ASM_FILES} PROPERTIES COMPILE_OPTIONS "-q;-safeseh;-Zne;-6;-Zp4;-elf;-zcw")

add_library(pentprim
awtm.c
Expand Down
2 changes: 1 addition & 1 deletion drivers/softrend/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ make_h2inc(softrend "${CMAKE_CURRENT_SOURCE_DIR}/drv.h" "${CMAKE_CURRENT_BINARY_
set(ASM_FILES
subdiv.asm
)
set_source_files_properties(${ASM_FILES} PROPERTIES COMPILE_OPTIONS "-safeseh")
set_source_files_properties(${ASM_FILES} PROPERTIES COMPILE_OPTIONS "-q;-safeseh;-Zne;-6;-Zp4;-elf;-zcw")

add_library(softrend
alpha.c
Expand Down
6 changes: 6 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,19 @@
packages.x86_64-linux = (mkPackages { system = "x86_64-linux"; }) // {
brender-samples-win32 = mkCross { crossSystem = nixpkgs.lib.systems.examples.mingw32; };
brender-samples-win64 = mkCross { crossSystem = nixpkgs.lib.systems.examples.mingwW64; };

brender-samples-lin32 = nixpkgs.legacyPackages.x86_64-linux.pkgsi686Linux.callPackage ./default.nix {
version = self.lastModifiedDate;
};
};

packages.i686-linux = mkPackages { system = "i686-linux"; };
packages.x86_64-darwin = mkPackages { system = "x86_64-darwin"; };
packages.aarch64-linux = mkPackages { system = "aarch64-linux"; };
packages.aarch64-darwin = mkPackages { system = "aarch64-darwin"; };

devShells.x86_64-linux = mkShells self.packages.x86_64-linux;
devShells.i686-linux = mkShells self.packages.i686-linux;
devShells.aarch64-linux = mkShells self.packages.aarch64-linux;
devShells.x86_64-darwin = mkShells self.packages.x86_64-darwin;
devShells.aarch64-darwin = mkShells self.packages.aarch64-darwin;
Expand Down

0 comments on commit ddd9506

Please sign in to comment.