Skip to content

Commit 1310903

Browse files
committed
CHANGE: merged macOS and Windows OS codecs registrations
1 parent f27939c commit 1310903

File tree

4 files changed

+82
-258
lines changed

4 files changed

+82
-258
lines changed

make/rebol3.nest

+11-11
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ mezz-lib-files: [
258258
; %mezz/codec-html-entities.reb
259259
; %mezz/codec-wav.reb
260260
; %mezz/codec-swf.reb
261-
; %mezz/codec-image.reb ; included using: include-image-os-codec (windows only so far)
261+
; %mezz/codec-image.reb ; included using: include-image-os-codec (windows and macos only so far)
262262
; %mezz/codec-image-ext.reb ; image codec extensions (codecs/png/size?)
263263
]
264264
mezz-prot-files: [
@@ -329,20 +329,18 @@ include-native-gif-codec: [config: INCLUDE_GIF_CODEC core-files: %core/u-gif.c]
329329

330330
;@@ on Windows it's better to use system image codec (ability to use more types)
331331
include-image-os-codec: [
332+
config: INCLUDE_IMAGE_OS_CODEC
333+
mezz-lib-files: %mezz/codec-image.reb
332334
#if Windows? [
333-
config: INCLUDE_IMAGE_OS_CODEC
334335
host-files: %os/win32/host-image.c
335-
mezz-lib-files: %mezz/codec-image-win.reb
336336
]
337337
#if MacOS? [
338-
config: INCLUDE_IMAGE_OS_CODEC
339338
host-files: [
340339
%os/osx/host-image.c
341340
%os/osx/sys-codecs.m
342341
%os/osx/sys-utils.m
343342
]
344343
frameworks: [CoreGraphics CoreImage ImageIO Foundation]
345-
mezz-lib-files: %mezz/codec-image-osx.reb
346344
]
347345
]
348346

@@ -495,7 +493,7 @@ include-codec-bbcode: [mezz-lib-files: %mezz/codec-bbcode.reb ]
495493
include-codec-html-entities: [mezz-lib-files: %mezz/codec-html-entities.reb]
496494
include-codec-ico: [
497495
; at this moment ico can be encoded only from pngs!
498-
:include-native-png-codec
496+
;:include-native-png-codec
499497
mezz-lib-files: %mezz/codec-ico.reb
500498
mezz-lib-files: %mezz/codec-image-ext.reb ; png/size? function
501499
]
@@ -538,10 +536,11 @@ include-rebol-core: [
538536
:include-iconv
539537
:include-https
540538

539+
:include-codec-unixtime
541540
:include-codec-gzip
542541
:include-codec-zip
543542
:include-codec-tar
544-
:include-codec-unixtime
543+
545544
config: INCLUDE_SHA224
546545
config: INCLUDE_SHA384
547546

@@ -551,23 +550,24 @@ include-rebol-core: [
551550
include-rebol-bulk: [
552551
:include-rebol-core
553552
:include-optional-checksums
554-
:include-image-codecs
555553
:include-image-natives
556554
:include-lzma-compression
557555
:include-base85-encoding
558556
:include-view
559557
:include-midi
560558

559+
:include-codec-swf
561560
:include-codec-gzip
562561
:include-codec-zip
563562
:include-codec-tar
564563
:include-codec-bbcode
565-
:include-codec-html-entities
566-
:include-codec-ico
564+
:include-codec-html-entities
567565
:include-codec-json
568566
:include-codec-xml
569-
:include-codec-swf
570567
:include-codec-wav
568+
:include-codec-ico
569+
570+
:include-image-codecs
571571

572572
:include-mezz-date
573573
:include-mezz-colors

src/mezz/codec-image-osx.reb

-99
This file was deleted.

src/mezz/codec-image-win.reb

-101
This file was deleted.

0 commit comments

Comments
 (0)